Ticket #10900: general-template.php.2.diff
| File general-template.php.2.diff, 1.7 KB (added by , 16 years ago) |
|---|
-
wp-includes/default-filters.php
86 86 add_filter( $filter, 'esc_html' ); 87 87 } 88 88 89 // Format titles 90 foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title' ) as $filter ) { 91 add_filter( $filter, 'wptexturize' ); 92 add_filter( $filter, 'strip_tags' ); 93 } 94 89 95 // Format text area for display. 90 96 foreach ( array( 'term_description' ) as $filter ) { 91 97 add_filter( $filter, 'wptexturize' ); -
wp-includes/general-template.php
571 571 // If there is a post 572 572 if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) { 573 573 $post = $wp_query->get_queried_object(); 574 $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ));574 $title = apply_filters( 'single_post_title', $post->post_title ); 575 575 } 576 576 577 577 // If there's a taxonomy … … 649 649 } 650 650 $title = apply_filters('single_post_title', $post->post_title, $post); 651 651 if ( $display ) 652 echo $prefix . strip_tags($title);652 echo $prefix . $title; 653 653 else 654 return strip_tags($title);654 return $title; 655 655 } 656 656 657 657 /** … … 684 684 $my_cat_name = apply_filters('single_cat_title', $cat->name); 685 685 if ( !empty($my_cat_name) ) { 686 686 if ( $display ) 687 echo $prefix . strip_tags($my_cat_name);687 echo $prefix . $my_cat_name; 688 688 else 689 return strip_tags($my_cat_name);689 return $my_cat_name; 690 690 } 691 691 } 692 692