[wp-trac] [WordPress Trac] #21995: (get/the)_archive_title and (get/the)_archive_description functions

WordPress Trac noreply at wordpress.org
Wed Oct 8 16:20:49 UTC 2014


#21995: (get/the)_archive_title and (get/the)_archive_description functions
-----------------------------+-----------------------
 Reporter:  thomask          |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  4.1
Component:  Themes           |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  template
-----------------------------+-----------------------
Changes (by obenland):

 * keywords:  has-patch dev-feedback => has-patch
 * version:   => trunk
 * milestone:  Future Release => 4.1


Comment:

 In [attachment:21995.7.diff]:

 * Simplify function parameters, taking inspiration from `the_title()`.
 * Remove redundant "archives" from translation strings.
 * Split archive_title in a returning "get_" and a displaying `the_`.
 * Add `the_archive_description()` as an echoing pendant to
 `term_description()`.
 * Adds post format support.

 There are two filters in this proposal, `get_archive_title` and
 `the_archive_description`. We could add a `the_archive_title` filter for
 similarity to the description function, but it would just filter the value
 of `get_archive_title`.

 The `span` wrappers were introduced in Twenty Eleven and then copied by a
 lot of other themes. They are hardly ever used, by far not by a majority,
 so I think we shouldn't add that complexity.

 Twenty Fifteen would benefit a great deal from this patch (#29799).

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


More information about the wp-trac mailing list