[wp-trac] [WordPress Trac] #35722: title-tag not in global $_wp_theme_features

WordPress Trac noreply at wordpress.org
Thu Feb 4 18:05:39 UTC 2016


#35722: title-tag not in global $_wp_theme_features
-----------------------------+----------------------
 Reporter:  Cybr             |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Themes           |     Version:  4.1
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by obenland):

 * status:  new => closed
 * version:  trunk => 4.1
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Replying to [ticket:35722 Cybr]:
 > The theme `title-tag` support has not been added to the global variable
 `$_wp_theme_features`, even when the theme supports it.
 > As you can see, it only adds a doing it wrong notice, but doesn't add
 the feature to `$args`:
 > https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-
 includes/theme.php#L1677

 It actually does add it to `$_wp_theme_features`, otherwise the feature
 wouldn't work. It only doesn't add it if the `wp_loaded` action hasn't
 fired yet. In all other times the switch statement falls through to the
 last line of the function.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35722#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list