[wp-cvs] wordpress/wp-includes classes.php,1.32,1.33

Ryan Boren rboren at users.sourceforge.net
Sat Dec 18 19:40:05 UTC 2004


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

Modified Files:
	classes.php 
Log Message:
Add generate_rewrite_rule().

Index: classes.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/classes.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** classes.php	18 Dec 2004 00:28:24 -0000	1.32
--- classes.php	18 Dec 2004 19:40:02 -0000	1.33
***************
*** 923,927 ****
  		}
  		$structure = trim($structure, '/');
! 		$dirs = explode('/', $structure);
  		$num_dirs = count($dirs);
  
--- 923,931 ----
  		}
  		$structure = trim($structure, '/');
! 		if ($walk_dirs) {
! 			$dirs = explode('/', $structure);
! 		} else {
! 			$dirs[] = $structure;
! 		}
  		$num_dirs = count($dirs);
  
***************
*** 984,987 ****
--- 988,995 ----
  	}
  
+ 	function generate_rewrite_rule($permalink_structure, $walk_dirs = false) {
+ 		return $this->generate_rewrite_rules($permalink_structure, false, false, false, $walk_dirs);
+ 	}
+ 
  	/* rewrite_rules
  	 * Construct rewrite matches and queries from permalink structure.




More information about the cvs mailing list