[wp-trac] [WordPress Trac] #29583: The getter in WP_Error may cause an "Undefined property" notice
WordPress Trac
noreply at wordpress.org
Mon Sep 8 09:43:06 UTC 2014
#29583: The getter in WP_Error may cause an "Undefined property" notice
---------------------------+-----------------------------
Reporter: bjornjohansen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Since the getter doesn't check whether the requested property actually
exists before trying to return it, it may cause an "Undefined property"
notice.
This happens on the update page in wp-admin if the compatibility of a
plugin is unknown.
Attached patch sets default return value to null and only return the value
of the requested property if it actually is set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29583>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list