#29103 closed defect (bug) (duplicate)
PHP notice in `list_plugin_updates()` if the Plugins API call fails
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | 2.9 |
Component: | Upgrade/Install | Keywords: | has-patch |
Focuses: | Cc: |
Description
Inside list_plugin_updates()
a plugins_api()
request is performed for each plugin (related: #20002). If the API request returns a WP_Error
then we get a notice in the Plugins section of the Updates screen due to an undefined property.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I can't duplicate this.
isset( $var->prop[ $a ][ $b ] )
suppresses all notices.isset( $var->prop[ $other_var->not_a_prop ] )
will issue a Notice for$other_var->not_a_prop
.