[wp-trac] [WordPress Trac] #21394: query.php: get_queried_object() result cannot be assumed to be non-NULL

WordPress Trac noreply at wordpress.org
Tue Sep 10 02:27:26 UTC 2013


#21394: query.php: get_queried_object() result cannot be assumed to be non-NULL
------------------------------+-----------------------------
 Reporter:  lkraav            |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.7
Component:  Warnings/Notices  |     Version:  3.3.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"25310"]:
 {{{
 #!CommitTicketReference repository="" revision="25310"
 Make sure the queried object is non-null before accessing its properties.

 Props markoheijnen, ryan.
 Fixes #21394.
 }}}

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


More information about the wp-trac mailing list