From 8e8c62cc9c482531c9287bdb5d8486d662e215bf Mon Sep 17 00:00:00 2001 From: lancewillett Date: Wed, 1 Aug 2012 16:45:12 +0000 Subject: [PATCH] Twenty Twelve: better comment block for twentytwelve_wp_title() and set passed arguments to empty strings for compatibility with plugins or child themes that might override wp_title() before this filter runs. See #21264. git-svn-id: http://core.svn.wordpress.org/trunk@21394 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index f1b0e33b4e..9751353e3e 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -138,8 +138,12 @@ add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); * for output in head of document, based on current view. * * @since Twenty Twelve 1.0 + * + * @param string $title Default title text for current view. + * @param string $sep Optional separator. + * @return string Filtered title. */ -function twentytwelve_wp_title( $title, $sep ) { +function twentytwelve_wp_title( $title = '', $sep = '' ) { global $paged, $page; if ( is_feed() )