Make WordPress Core

Ticket #57776: 57776.diff

File 57776.diff, 845 bytes (added by dhrumilk, 2 years ago)

Added theme support code.

  • src/wp-content/themes/twentyfourteen/functions.php

    diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
    index 44280fdc66..7363c700c3 100644
    a b if ( ! function_exists( 'twentyfourteen_setup' ) ) : 
    7777                        twentyfourteen_font_url()
    7878                );
    7979                add_editor_style( array( 'css/editor-style.css', $font_stylesheet, 'genericons/genericons.css' ) );
     80                // Add theme support for the title tag.
     81                add_theme_support( 'title-tag' );
    8082
    8183                // Load regular editor styles into the new block-based editor.
    8284                add_theme_support( 'editor-styles' );
    if ( ! function_exists( 'is_customize_preview' ) ) : 
    729731                return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview();
    730732        }
    731733endif;
     734