WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#33024 closed defect (bug) (fixed)

stdClass::$last_updated

Reported by: icetee Owned by: 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
5 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
5 years ago

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

#3 @johnbillion
5 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.