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

WordPress Trac noreply at wordpress.org
Thu Feb 4 17:52:18 UTC 2016


#35722: title-tag not in global $_wp_theme_features
-----------------------------+-----------------------------
 Reporter:  Cybr             |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hi there,

 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

 The codex says it does contain the check:
 https://codex.wordpress.org/Function_Reference/current_theme_supports

 When added, plugins can check for this kind of theme support as well.

 Thanks!

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


More information about the wp-trac mailing list