[wp-cvs] wordpress/wp-includes functions.php,1.212,1.213

Ryan Boren rboren at users.sourceforge.net
Sun Nov 21 06:03:21 UTC 2004


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

Modified Files:
	functions.php 
Log Message:
Allow empty uris to be passed to add_query_arg().  Useful when appending arguments to WP_Query query strings that do not yet have any arguments.

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.212
retrieving revision 1.213
diff -C2 -d -r1.212 -r1.213
*** functions.php	20 Nov 2004 18:32:31 -0000	1.212
--- functions.php	21 Nov 2004 06:03:19 -0000	1.213
***************
*** 2349,2357 ****
  	}
  	else {
! 		$uri = @func_get_arg(2);
! 	}
! 	if ('' == $uri) {
! 		$uri = $_SERVER['REQUEST_URI'];
  	}
  	if (strstr($uri, '?')) {
  		$parts = explode('?', $uri, 2);
--- 2349,2359 ----
  	}
  	else {
! 		if (@func_num_args() < 3) {
! 			$uri = $_SERVER['REQUEST_URI'];
! 		} else {
! 			$uri = @func_get_arg(2);
! 		}
  	}
+ 
  	if (strstr($uri, '?')) {
  		$parts = explode('?', $uri, 2);




More information about the cvs mailing list