Ticket #34456: 34456.6.diff
File 34456.6.diff, 799 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/deprecated.php
3662 3662 * @return string|null String on retrieve, null when displaying. 3663 3663 */ 3664 3664 function wp_title( $sep = '»', $display = true, $seplocation = '' ) { 3665 _deprecated_function( __FUNCTION__, '4.4', 'add_theme_support( \'title-tag\' )' );3665 add_action( 'wp_footer', 'display_wp_title_notice' ); 3666 3666 3667 3667 global $wp_locale; 3668 3668 … … 3789 3789 return $title; 3790 3790 } 3791 3791 } 3792 3793 /** 3794 * Marks `wp_title()` as deprecated. 3795 * 3796 * @ignore 3797 * @since 4.4.0 3798 */ 3799 function display_wp_title_notice() { 3800 _deprecated_function( 'wp_title', '4.4', 'add_theme_support( \'title-tag\' )' ); 3801 }