[wp-cvs] wordpress/wp-includes functions-formatting.php,1.52,1.53

Ryan Boren rboren at users.sourceforge.net
Mon Dec 20 06:35:56 UTC 2004


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

Modified Files:
	functions-formatting.php 
Log Message:
Remove percent signs from slugs.  PAtch from MooKitty.  Bug 569.

Index: functions-formatting.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** functions-formatting.php	19 Dec 2004 07:26:43 -0000	1.52
--- functions-formatting.php	20 Dec 2004 06:35:54 -0000	1.53
***************
*** 228,232 ****
      $title = strtolower($title);
      $title = preg_replace('/&.+?;/', '', $title); // kill entities
!     $title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
      $title = preg_replace('/\s+/', '-', $title);
      $title = preg_replace('|-+|', '-', $title);
--- 228,232 ----
      $title = strtolower($title);
      $title = preg_replace('/&.+?;/', '', $title); // kill entities
!     $title = preg_replace('/[^a-z0-9 _-]/', '', $title);
      $title = preg_replace('/\s+/', '-', $title);
      $title = preg_replace('|-+|', '-', $title);
***************
*** 574,576 ****
  }
  
! ?>
\ No newline at end of file
--- 574,576 ----
  }
  
! ?>




More information about the cvs mailing list