[wp-cvs] wordpress/wp-includes functions-formatting.php,1.36,1.37

Ryan Boren rboren at users.sourceforge.net
Sat Jul 24 03:22:52 UTC 2004


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

Modified Files:
	functions-formatting.php 
Log Message:
If the sanitized title is empty, fallback to the post ID for the nicename. http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000116

Index: functions-formatting.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** functions-formatting.php	18 Jun 2004 00:22:09 -0000	1.36
--- functions-formatting.php	24 Jul 2004 03:22:49 -0000	1.37
***************
*** 1,5 ****
  <?php
  
! add_action('sanitize_title', 'sanitize_title_with_dashes');
  
  function wptexturize($text) {
--- 1,5 ----
  <?php
  
! add_filter('sanitize_title', 'sanitize_title_with_dashes');
  
  function wptexturize($text) {
***************
*** 120,125 ****
  }
  
! function sanitize_title($title) {
!     $title = do_action('sanitize_title', $title);
  
      return $title;
--- 120,129 ----
  }
  
! function sanitize_title($title, $fallback_title = '') {
!     $title = apply_filters('sanitize_title', $title);
! 
!     if (empty($title)) {
!         $title = $fallback_title;
!     }
  
      return $title;




More information about the cvs mailing list