[wp-trac] Re: [WordPress Trac] #5358: Queried object on multiple
tag query holds only first tag
WordPress Trac
wp-trac at lists.automattic.com
Mon May 11 05:42:04 GMT 2009
#5358: Queried object on multiple tag query holds only first tag
--------------------------+-------------------------------------------------
Reporter: Kafkaesqui | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Taxonomy | Version: 2.3.1
Severity: normal | Keywords: tags wp_query
--------------------------+-------------------------------------------------
Comment(by filosofo):
Replying to [ticket:5358 Kafkaesqui]:
> One would expect to find an array of all tags in the queried object.
[[br]]
Semantically, I would expect something named
{{{get_queried_object}}}''s''{{{()}}}, not {{{get_queried_object()}}}, to
return an array of all tags queried: the queried object should be just
that---the object queried. If we were to change the behavior of
{{{get_queried_object()}}} so that it sometimes returns not an object but
an array of objects, we would break all the plugins and themes that expect
an object. And we would have to figure out what to do with its
complementary method, {{{get_queried_object_id()}}}.
[[br]]
A better approach might be to create a new method named
{{{get_queried_objects()}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/5358#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list