From 2a7834f801bbbcf3be7334392580a1e506d72485 Mon Sep 17 00:00:00 2001 From: Lance Willett 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: https://develop.svn.wordpress.org/trunk@21394 602fd350-edb4-49c9-b593-d223f7449a82 --- 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() )