WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2015 04:20:04 PM (3 years ago)
Author:
obenland
Message:

Themes: Improve document title output.

Introduces more flexibility in filtering all parts of the document title,the
separator, and a way to short-circuit title generation. Plugins can now also
check for theme support and reliably filter the entire output. See #18548.
Deprecates wp_title().

Fixes #31078.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r34828 r35294  
    17531753        return false;
    17541754
    1755     if ( 'title-tag' == $feature ) {
    1756         // Don't confirm support unless called internally.
    1757         $trace = debug_backtrace();
    1758         if ( ! in_array( $trace[1]['function'], array( '_wp_render_title_tag', 'wp_title' ) ) ) {
    1759             return false;
    1760         }
    1761     }
    1762 
    17631755    // If no args passed then no extra checks need be performed
    17641756    if ( func_num_args() <= 1 )
Note: See TracChangeset for help on using the changeset viewer.