Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#33024 closed defect (bug) (fixed)

stdClass::$last_updated

Reported by: icetee's profile icetee Owned by: johnbillion's profile johnbillion
Milestone: 4.4 Priority: normal
Severity: trivial Version: 4.2.2
Component: Plugins Keywords:
Focuses: Cc:

Description

Notice: Undefined property: stdClass::$last_updated

wp-admin/includes/plugin-install.php file:

x $last_updated_timestamp = strtotime( $api->last_updated );

+ if ( !empty($api->last_updated) ) {
+ $last_updated_timestamp = strtotime( $api->last_updated );
+ }

Change History (3)

#1 @thomask
10 years ago

  • Component changed from General to Plugins
  • Keywords reporter-feedback added
  • Severity changed from normal to trivial
  • Type changed from enhancement to defect (bug)

I confirm, error notice appears for me as well with 4.2.3

#2 @johnbillion
10 years ago

  • Keywords reporter-feedback removed
  • Milestone changed from Awaiting Review to 4.4

#3 @johnbillion
10 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 34458:

Avoid a PHP notice if the last_updated property isn't present in a plugin's data from the Plugins API.

Fixes #33024
Props icetee

Note: See TracTickets for help on using tickets.