WordPress.org

Make WordPress Core

Ticket #13971: 13971.diff

File 13971.diff, 1.1 KB (added by nacin, 9 years ago)

From MarkJaquith

  • wp-includes/formatting.php

     
    28262826 * @since 3.0.0
    28272827 */
    28282828function capital_P_dangit( $text ) {
    2829        return str_replace( 'Wordpress', 'WordPress', $text );
     2829        $q = _x('“', 'opening curly quote');
     2830        return str_replace( array( ' Wordpress', $q . 'Wordpress', '>Wordpress' ), array( ' WordPress', $q . 'WordPress', '>WordPress' ), $text );
    28302831}
    28312832
    28322833?>
  • wp-includes/default-filters.php

     
    8888
    8989// Format WordPress
    9090foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter )
    91         add_filter( $filter, 'capital_P_dangit' );
     91        add_filter( $filter, 'capital_P_dangit', 11 );
    9292
    9393// Format titles
    9494foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description' ) as $filter ) {