forked from mirror/_s
Remove _s_render_title()
Removing `_s_render_title()`, no longer needed as of 4.3.
This commit is contained in:
parent
d02cc4fa70
commit
6f621af060
|
@ -55,17 +55,4 @@ if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) :
|
||||||
return $title;
|
return $title;
|
||||||
}
|
}
|
||||||
add_filter( 'wp_title', '_s_wp_title', 10, 2 );
|
add_filter( 'wp_title', '_s_wp_title', 10, 2 );
|
||||||
|
|
||||||
/**
|
|
||||||
* Title shim for sites older than WordPress 4.1.
|
|
||||||
*
|
|
||||||
* @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/
|
|
||||||
* @todo Remove this function when WordPress 4.3 is released.
|
|
||||||
*/
|
|
||||||
function _s_render_title() {
|
|
||||||
?>
|
|
||||||
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
add_action( 'wp_head', '_s_render_title' );
|
|
||||||
endif;
|
endif;
|
||||||
|
|
Reference in New Issue