[wp-trac] [WordPress Trac] #38618: wp_description() and description-tag

WordPress Trac noreply at wordpress.org
Tue Mar 26 15:51:14 UTC 2019


#38618: wp_description() and description-tag
-----------------------------+------------------------------
 Reporter:  henry.wright     |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+------------------------------
Changes (by desrosj):

 * keywords:   => 2nd-opinion
 * version:  4.6.1 =>
 * component:  Themes => General


Comment:

 Thanks for this, @henrywright!

 In 4.1, the `title-tag` theme support was introduced (see #18548). This
 feature, if a theme opted in, would eliminate the need to call
 `wp_title()`. Instead, WordPress would automatically output the `<title>`
 tag using `wp_get_document_title()`.

 There was an attempt to deprecate the `wp_title()` function [35294] in
 favor of the more flexible `wp_get_document_title()` and this new
 approach, but this was ultimately reverted (see [35624]).

 With this in mind, I would not be in favor of a `wp_title()` counterpart,
 but would not be opposed to `wp_get_document_description()` counterpart to
 standardize the description tag in a similar manner. But, I also don't
 feel strongly that Core should include this, so going to leave this for a
 second opinion.

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


More information about the wp-trac mailing list