[wp-trac] [WordPress Trac] #21967: "Passed variable is not an array or object" in WP_Query::get_queried_object()

WordPress Trac noreply at wordpress.org
Wed Nov 7 22:09:06 UTC 2012


#21967: "Passed variable is not an array or object" in
WP_Query::get_queried_object()
------------------------------+-----------------------------
 Reporter:  onetarek          |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  low               |   Milestone:  3.5
Component:  Query             |     Version:  3.4.2
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+-----------------------------
Changes (by nacin):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"22450"]:
 {{{
 #!CommitTicketReference repository="" revision="22450"
 Don't call get_term_by() in get_queried_object() if we have no terms.
 props wonderboymusic. fixes #21967.
 }}}

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


More information about the wp-trac mailing list