Make WordPress Core

Changeset 34458


Ignore:
Timestamp:
09/23/2015 03:09:42 PM (9 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r34365 r34458  
    458458
    459459    $date_format = __( 'M j, Y @ H:i' );
    460     $last_updated_timestamp = strtotime( $api->last_updated );
     460
     461    if ( ! empty( $api->last_updated ) ) {
     462        $last_updated_timestamp = strtotime( $api->last_updated );
     463    }
     464
    461465    ?>
    462466    <div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
Note: See TracChangeset for help on using the changeset viewer.