[wp-trac] [WordPress Trac] #17662: PHP Notices in get_body_class() for certain query conditions
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 19 22:31:44 UTC 2011
#17662: PHP Notices in get_body_class() for certain query conditions
--------------------------+------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.2
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by mfields):
In the case of a multiple term query, it might make sense for
get_queried_object() to return the first term that appears in the query
string. I'm not sure that returning more than one object from
get_queried_object() would be a good idea.
In a scenario where Author, CatA and CatB where all queried simultaneously
and the developer just needed the category objects, it might be a good
solution to allow get_queried_objects() to accept a 'type' parameter as
well. A developer could then use get_queried_objects( 'category' ) to
return all queried categories in the order they were defined in the url.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17662#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list