Make WordPress Core

Ticket #34456: 34456.6.diff

File 34456.6.diff, 799 bytes (added by obenland, 9 years ago)
  • src/wp-includes/deprecated.php

     
    36623662 * @return string|null String on retrieve, null when displaying.
    36633663 */
    36643664function 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' );
    36663666
    36673667        global $wp_locale;
    36683668
     
    37893789                return $title;
    37903790        }
    37913791}
     3792
     3793/**
     3794 * Marks `wp_title()` as deprecated.
     3795 *
     3796 * @ignore
     3797 * @since 4.4.0
     3798 */
     3799function display_wp_title_notice() {
     3800        _deprecated_function( 'wp_title', '4.4', 'add_theme_support( \'title-tag\' )' );
     3801}