[wp-cvs] wordpress/wp-includes functions.php,1.182,1.183

Donncha O Caoimh donncha at users.sourceforge.net
Wed Oct 6 13:10:55 UTC 2004


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

Modified Files:
	functions.php 
Log Message:
Check if $uris is an array.


Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.182
retrieving revision 1.183
diff -C2 -d -r1.182 -r1.183
*** functions.php	6 Oct 2004 05:11:11 -0000	1.182
--- functions.php	6 Oct 2004 13:10:52 -0000	1.183
***************
*** 1251,1257 ****
  
  	$rewrite_rules = array();
! 	foreach ($uris as $uri => $pagename) {
! 		$rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
! 	}
  
  	return $rewrite_rules;
--- 1251,1260 ----
  
  	$rewrite_rules = array();
!         if( is_array( $uris ) )
!         {
!             foreach ($uris as $uri => $pagename) {
!                 $rewrite_rules += array($uri . '/?$' => "index.php?pagename=$pagename");
!             }
!         }
  
  	return $rewrite_rules;




More information about the cvs mailing list