mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Forever eliminate 'Wordpress' from the planet (or at least the little bit we can influence). props matt.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b5ce238b3
commit
c3cf7e4ee0
wp-includes
@ -86,6 +86,10 @@ foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description',
|
||||
add_filter( $filter, 'esc_html' );
|
||||
}
|
||||
|
||||
// Format WordPress
|
||||
foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter )
|
||||
add_filter( $filter, 'capital_P_dangit' );
|
||||
|
||||
// Format titles
|
||||
foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description' ) as $filter ) {
|
||||
add_filter( $filter, 'wptexturize' );
|
||||
@ -247,3 +251,5 @@ add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' );
|
||||
// Admin Color Schemes
|
||||
add_action( 'admin_init', 'register_admin_color_schemes', 1);
|
||||
add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
|
||||
|
||||
?>
|
@ -2817,4 +2817,15 @@ function sanitize_text_field($str) {
|
||||
return apply_filters('sanitize_text_field', $filtered, $str);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
|
||||
*
|
||||
* Violating our coding standards for a good function name.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function capital_P_dangit( $text ) {
|
||||
return str_replace( 'Wordpress', 'WordPress', $text );
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user