Merge pull request #798 from emiluzelac/patch-42

Since 4.3 is now released, we no longer require backward-compatibility for versions older than 4.1 and this can be removed.
This commit is contained in:
sarah ✈ semark 2015-08-21 12:54:23 +01:00
commit 8e9678b0bf
1 changed files with 0 additions and 13 deletions

View File

@ -55,17 +55,4 @@ if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) :
return $title;
}
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;