[wp-trac] [WordPress Trac] #8981: allow filters to see raw title

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 28 22:51:52 GMT 2009


#8981: allow filters to see raw title
--------------------------+-------------------------------------------------
 Reporter:  chineseleper  |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.7.1
Component:  Plugins       |     Version:  2.7  
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
 In /wp-includes/formatting.php
 {{{
  481  function sanitize_title($title, $fallback_title = '') {
  482      $title = strip_tags($title);
  483      $title = apply_filters('sanitize_title', $title);
 }}}
 should be something like
 {{{
  481  function sanitize_title($raw_title, $fallback_title = '') {
  482      $title = strip_tags($raw_title);
  483      $title = apply_filters('sanitize_title', $title, $raw_title);
 }}}
 I need this for qTranslate, qT adds XML-Comments to seperate languages,
 which get removed by strip_tags. Because of that, the title get mixed up
 with text from different languages.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8981>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list