Make WordPress Core


Ignore:
Timestamp:
02/27/2010 06:57:04 PM (15 years ago)
Author:
nacin
Message:

Standardize filters for single_(post|cat|tag|month)_title() on strip_tags() and wptexturize(). fixes #10900 props scribu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r13399 r13467  
    8585    add_filter( $filter, 'convert_chars' );
    8686    add_filter( $filter, 'esc_html'      );
     87}
     88
     89// Format titles
     90foreach ( 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'  );
    8793}
    8894
Note: See TracChangeset for help on using the changeset viewer.