diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
index d3f5fc0..bd534a3 100644
a
|
b
|
foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description', |
86 | 86 | add_filter( $filter, 'esc_html' ); |
87 | 87 | } |
88 | 88 | |
89 | | // Format WordPress |
90 | | foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter ) |
91 | | add_filter( $filter, 'capital_P_dangit' ); |
92 | | |
93 | 89 | // Format titles |
94 | 90 | foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description' ) as $filter ) { |
95 | 91 | add_filter( $filter, 'wptexturize' ); |
diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 0004673..93376ac 100644
a
|
b
|
function sanitize_text_field($str) { |
2818 | 2818 | return apply_filters('sanitize_text_field', $filtered, $str); |
2819 | 2819 | } |
2820 | 2820 | |
2821 | | /** |
2822 | | * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence). |
2823 | | * |
2824 | | * Violating our coding standards for a good function name. |
2825 | | * |
2826 | | * @since 3.0.0 |
2827 | | */ |
2828 | | function capital_P_dangit( $text ) { |
2829 | | return str_replace( 'Wordpress', 'WordPress', $text ); |
2830 | | } |
2831 | | |
2832 | 2821 | ?> |