Changeset 11380 for trunk/wp-includes/default-filters.php
- Timestamp:
- 05/18/2009 03:11:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-filters.php
r11208 r11380 21 21 add_filter($filter, 'trim'); 22 22 add_filter($filter, 'wp_filter_kses'); 23 add_filter($filter, ' wp_specialchars', 30);23 add_filter($filter, 'esc_html', 30); 24 24 } 25 25 … … 81 81 add_filter($filter, 'wptexturize'); 82 82 add_filter($filter, 'convert_chars'); 83 add_filter($filter, ' wp_specialchars');83 add_filter($filter, 'esc_html'); 84 84 } 85 85 … … 132 132 add_filter('the_title_rss', 'strip_tags'); 133 133 add_filter('the_title_rss', 'ent2ncr', 8); 134 add_filter('the_title_rss', ' wp_specialchars');134 add_filter('the_title_rss', 'esc_html'); 135 135 add_filter('the_content_rss', 'ent2ncr', 8); 136 136 add_filter('the_excerpt_rss', 'convert_chars'); … … 138 138 add_filter('comment_author_rss', 'ent2ncr', 8); 139 139 add_filter('comment_text_rss', 'ent2ncr', 8); 140 add_filter('comment_text_rss', ' wp_specialchars');140 add_filter('comment_text_rss', 'esc_html'); 141 141 add_filter('bloginfo_rss', 'ent2ncr', 8); 142 142 add_filter('the_author', 'ent2ncr', 8); … … 144 144 // Misc filters 145 145 add_filter('option_ping_sites', 'privacy_ping_filter'); 146 add_filter('option_blog_charset', ' wp_specialchars');146 add_filter('option_blog_charset', '_wp_specialchars'); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop 147 147 add_filter('option_home', '_config_wp_home'); 148 148 add_filter('option_siteurl', '_config_wp_siteurl');
Note: See TracChangeset
for help on using the changeset viewer.