[wp-trac] [WordPress Trac] #28412: get_queried_object_id() method in pre_get_posts

WordPress Trac noreply at wordpress.org
Wed Jun 4 23:42:11 UTC 2014


#28412: get_queried_object_id() method in pre_get_posts
------------------------------------+-----------------------------
 Reporter:  wpsmith                 |       Owner:  SergeyBiryukov
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  4.0
Component:  Query                   |     Version:  trunk
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28667"]:
 {{{
 #!CommitTicketReference repository="" revision="28667"
 Avoid a PHP notice when using WP_Query::get_queried_object() in
 pre_get_posts action.

 props wpsmith.
 fixes #28412.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28412#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list