[wp-trac] [WordPress Trac] #29583: The getter in WP_Error may cause an "Undefined property" notice

WordPress Trac noreply at wordpress.org
Mon Feb 9 06:34:07 UTC 2015


#29583: The getter in WP_Error may cause an "Undefined property" notice
---------------------------+-----------------------------
 Reporter:  bjornjohansen  |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.1
Component:  General        |     Version:  4.0
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------

Comment (by dd32):

 A note on the above change - As of 4.2 & [31138] WP_Error no longer has
 magic methods, but keeping this code rather than reverting as a reminder
 to others that it can be a non-object.

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


More information about the wp-trac mailing list