WordPress.org

Make WordPress Core

Changeset 14996


Ignore:
Timestamp:
05/27/2010 04:11:27 PM (8 years ago)
Author:
nacin
Message:

Forever eliminate 'Wordpress' from the planet (or at least the little bit we can influence). props matt.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r14826 r14996  
    8686    add_filter( $filter, 'esc_html'      );
    8787}
     88
     89// Format WordPress
     90foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter )
     91    add_filter( $filter, 'capital_P_dangit' );
    8892
    8993// Format titles
     
    248252add_action( 'admin_init', 'register_admin_color_schemes', 1);
    249253add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
     254
     255?>
  • trunk/wp-includes/formatting.php

    r14766 r14996  
    28182818}
    28192819
     2820/**
     2821 * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
     2822 *
     2823 * Violating our coding standards for a good function name.
     2824 *
     2825 * @since 3.0.0
     2826 */
     2827function capital_P_dangit( $text ) {
     2828       return str_replace( 'Wordpress', 'WordPress', $text );
     2829}
     2830
    28202831?>
Note: See TracChangeset for help on using the changeset viewer.