[wp-cvs] wordpress/wp-includes functions.php,1.263,1.264
Ryan Boren
rboren at users.sourceforge.net
Tue Feb 15 00:17:24 GMT 2005
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8739/wp-includes
Modified Files:
functions.php
Log Message:
Make wp_setcookie() and wp_clearcookie() replaceable.
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.263
retrieving revision 1.264
diff -C2 -d -r1.263 -r1.264
*** functions.php 14 Feb 2005 09:48:48 -0000 1.263
--- functions.php 15 Feb 2005 00:17:21 -0000 1.264
***************
*** 1753,1756 ****
--- 1753,1757 ----
}
+ if ( !function_exists('wp_setcookie') ) :
function wp_setcookie($username, $password, $already_md5 = false, $home = '', $siteurl = '') {
if ( !$already_md5 )
***************
*** 1778,1782 ****
--- 1779,1785 ----
}
}
+ endif;
+ if ( !function_exists('wp_clearcookie') ) :
function wp_clearcookie() {
setcookie('wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);
***************
*** 1785,1788 ****
setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);
}
!
?>
--- 1788,1791 ----
setcookie('wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);
}
! endif;
?>
More information about the cvs
mailing list