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
This commit is contained in:
parent
51563cf8ff
commit
8e8c62cc9c
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue