[wp-trac] [WordPress Trac] #38545: Add span element to get_the_archive_title()

WordPress Trac noreply at wordpress.org
Mon May 25 05:58:33 UTC 2020


#38545: Add span element to get_the_archive_title()
-------------------------------------------------+-------------------------
 Reporter:  Kaira                                |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.5
Component:  Taxonomy                             |     Version:  4.6.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing early        |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by Confridin):

 Replying to [comment:87 joyously]:
 > I think this entire ticket ignores the basic problem of the function,
 which is that it will only output a single title, even if the query is
 more complicated, misrepresenting what the page is about. But that is
 probably a different ticket. If it were to output multiple parts to
 represent a more complicated query, I would expect each part to have its
 own span.
 > Also, there is no way to remove the vcard span on the author, which does
 not belong as the definition of vcard is more than just the name.

 The initial ticket actually corresponds to a very specific need (adding a
 span), but other tickets are linked to this function.

 The last patch
 ([https://core.trac.wordpress.org/attachment/ticket/38545/38545.13.diff
 38545.13.diff]) allows to improve it in order to correct its flaws : being
 able to get the archive title with or without prefix, and with the ability
 to filter all data before returning it.

 Related tickets are :
 - [https://core.trac.wordpress.org/ticket/42768 42768]
 - [https://core.trac.wordpress.org/ticket/31237 31237]

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


More information about the wp-trac mailing list