[wp-trac] [WordPress Trac] #29583: The getter in WP_Error may cause an "Undefined property" notice
WordPress Trac
noreply at wordpress.org
Tue Sep 9 09:38:13 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: 4.1
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 4.1
Comment:
Reproduced the notice if `plugins_api()` returns a `WP_Error`:
{{{
PHP Notice: Undefined property: WP_Error::$compatibility in wp-includes
/class-wp-error.php on line 78
}}}
We should probably check if `$info->compatibility` is set in `update-
core.php`, like we do for `$info->tested`. See [attachment:29583.patch].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29583#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list