WordPress.org

Make WordPress Core

Ticket #14043: patch.diff

File patch.diff, 1.3 KB (added by harrym, 3 years ago)

Patch

  • wp-includes/default-filters.php

    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', 
    8686        add_filter( $filter, 'esc_html'      ); 
    8787} 
    8888 
    89 // Format WordPress 
    90 foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter ) 
    91         add_filter( $filter, 'capital_P_dangit' ); 
    92  
    9389// Format titles 
    9490foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description' ) as $filter ) { 
    9591        add_filter( $filter, 'wptexturize' ); 
  • wp-includes/formatting.php

    diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
    index 0004673..93376ac 100644
    a b function sanitize_text_field($str) { 
    28182818        return apply_filters('sanitize_text_field', $filtered, $str); 
    28192819} 
    28202820 
    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  
    28322821?>