[wp-cvs] wordpress/wp-includes functions.php,1.237,1.238

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Jan 24 07:30:51 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31997/wp-includes

Modified Files:
	functions.php 
Log Message:
Siteurl autoupdate now requires RELOCATE flag - http://mosquito.wordpress.org/view.php?id=602

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.237
retrieving revision 1.238
diff -C2 -d -r1.237 -r1.238
*** functions.php	20 Jan 2005 04:56:24 -0000	1.237
--- functions.php	24 Jan 2005 07:30:48 -0000	1.238
***************
*** 1630,1642 ****
  
  function wp_setcookie($username, $password, $already_md5 = false, $home = '', $siteurl = '') {
! 	if ( ! $already_md5)
! 		$password = md5(md5($password)); // Double hash the password in the cookie.
  
! 	if (empty($home))
  		$cookiepath = COOKIEPATH;
  	else
  		$cookiepath = preg_replace('|https?://[^/]+|i', '', $home . '/' );
  
! 	if (empty($siteurl)) {
  		$sitecookiepath = SITECOOKIEPATH;
  		$cookiehash = COOKIEHASH;
--- 1630,1642 ----
  
  function wp_setcookie($username, $password, $already_md5 = false, $home = '', $siteurl = '') {
! 	if ( !$already_md5 )
! 		$password = md5( md5($password) ); // Double hash the password in the cookie.
  
! 	if ( empty($home) )
  		$cookiepath = COOKIEPATH;
  	else
  		$cookiepath = preg_replace('|https?://[^/]+|i', '', $home . '/' );
  
! 	if ( empty($siteurl) ) {
  		$sitecookiepath = SITECOOKIEPATH;
  		$cookiehash = COOKIEHASH;



More information about the cvs mailing list