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

WordPress Trac noreply at wordpress.org
Wed Mar 6 21:46:59 UTC 2013

#21995: (get/the)_archive_title and (get/the)_archive_description functions
 Reporter:  thomask                 |       Owner:
     Type:  feature request         |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  Template                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |

Comment (by mdgl):

 Replying to [comment:23 DrewAPicture]:
 > Based on further review of other uses of `get_queried_object()`, I'm
 going to go without the check in 21995.6.diff

 Ah, yes the "what exactly is the queried object" problem!!  I believe this
 can be a bit hairy in the presence of "complex" queries, and I am sure
 there are other tickets on this very topic, but somehow, if `is_tax()`
 returns true you need to be able to rely on the object being a (custom)
 taxonomy.  Similarly for the other `is_xxx()` functions.  Anything else
 results in too much madness!!

Ticket URL: <http://core.trac.wordpress.org/ticket/21995#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list