[wp-cvs] wordpress/wp-admin options-permalink.php,1.42,1.43

Ryan Boren rboren at users.sourceforge.net
Sat Sep 18 05:49:13 UTC 2004


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

Modified Files:
	options-permalink.php 
Log Message:
Remove extra slashes from permalink structure.

Index: options-permalink.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options-permalink.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** options-permalink.php	15 Sep 2004 15:09:37 -0000	1.42
--- options-permalink.php	18 Sep 2004 05:49:10 -0000	1.43
***************
*** 22,27 ****
  
  if (isset($_POST['submit'])) {
! 	update_option('permalink_structure', $_POST['permalink_structure']);
! 	$permalink_structure = $_POST['permalink_structure'];
  
  	update_option('category_base', $_POST['category_base']);
--- 22,27 ----
  
  if (isset($_POST['submit'])) {
! 	$permalink_structure = preg_replace('#/+/#', '/', $_POST['permalink_structure']);
! 	update_option('permalink_structure', $permalink_structure);
  
  	update_option('category_base', $_POST['category_base']);




More information about the cvs mailing list