[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
Sat Dec 15 23:22:49 UTC 2012


#18614: post_type_archive_title doesn't work when tax_query is added to wp_query
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Future Release
Component:  Template        |     Version:  3.2
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+-----------------------------
Changes (by styledev):

 * cc: styledev (added)


Comment:

 It seems as if a part of 18614.2.diff​ was included in Wordpress 3.5 in
 general-template.php lines 1666 to 1669 in function feed_links_extra(
 $args = array() ):

 {{{
 } elseif ( is_post_type_archive() ) {
         $title = sprintf( $args['posttypetitle'], get_bloginfo('name'),
 $args['separator'], post_type_archive_title( '', false ) );
         $href = get_post_type_archive_feed_link(
 get_queried_object()->name );
 }
 }}}

 Which now is causing the following notices:

 Notice: Undefined property: stdClass::$labels in
 /Users/dbushaw/Sites/trainelite/wp-includes/general-template.php on line
 658

 Notice: Trying to get property of non-object in
 /Users/dbushaw/Sites/trainelite/wp-includes/general-template.php on line
 658

 Note: If you apply the latest patch (18614.2.diff) then everything is
 fixed.

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


More information about the wp-trac mailing list