[wp-trac] [WordPress Trac] #42768: the_archive_title clutter

WordPress Trac noreply at wordpress.org
Sat Dec 2 20:33:15 UTC 2017


#42768: the_archive_title clutter
-------------------------+------------------------------
 Reporter:  beerwin      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  4.9.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, template
-------------------------+------------------------------

Comment (by beerwin):

 Replying to [comment:1 Presskopp]:
 > I think this could be filtered like
 >
 > https://gist.github.com/proweb/f329cde740e0802870871bef830fab50

 Yes, that is pretty much the kind of duplicate code I would like to avoid,
 given how the clutter is being added in `get_the_archive_title()`. Calling
 `single_cat_title()` twice to just get the archive title without the
 clutter. And `single_cat_title()` has a somewhat deep call stack on its
 own. Right now, we are undoing something that has been done 2 ms earlier
 by rerunning almost the same thing.

 I'm not asking to remove these title prefixes. It's just a request to make
 them optional. Aside of being less work for theme developers, it's also a
 bit less work for servers to do. Also, my suggestion won't break backwards
 compatibility either.

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


More information about the wp-trac mailing list