Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#29103 closed defect (bug) (duplicate)

PHP notice in `list_plugin_updates()` if the Plugins API call fails

Reported by: johnbillion Owned by:
Priority: low Milestone:
Component: Upgrade/Install Version: 2.9
Severity: minor Keywords: has-patch
Cc: Focuses:

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)

29103.patch (1.6 KB ) - added by johnbillion 12 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
12 years ago

#1 @johnbillion
12 years ago

  • Keywords has-patch added; needs-patch removed

#2 @dd32
11 years ago

  • Milestone Future Release
  • Resolutioninvalid
  • Status newclosed

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.

#3 @SergeyBiryukov
11 years ago

  • Resolution invalidduplicate

Duplicate of #29583.

Note: See TracTickets for help on using tickets.