[wp-trac] [WordPress Trac] #18614: post_type_archive_title doesn't work when tax_query is added to wp_query

WordPress Trac noreply at wordpress.org
Fri Sep 6 23:38:52 UTC 2013


#18614: post_type_archive_title doesn't work when tax_query is added to wp_query
----------------------------------------+-----------------------------
 Reporter:  wonderboymusic              |       Owner:  wonderboymusic
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  3.7
Component:  Template                    |     Version:  3.2
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+-----------------------------

Comment (by wonderboymusic):

 In [changeset:"25292"]:
 {{{
 #!CommitTicketReference repository="" revision="25292"
 Check the value passed to `get_post_type_object()`. If it's an array, use
 the first item. `get_query_var( 'post_type' )` can be an array if the
 query has been altered via filters/actions. There are several places in
 core that pass the query var. Adds unit tests.

 In `template-loader.php`, move `is_post_type_archive()` and `is_tax()`
 directly below `is_home()`.

 See #18614, [25291].
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/18614#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list