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 git-svn-id: https://develop.svn.wordpress.org/trunk@34458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cf3042389d
commit
d8a59791f0
@ -457,7 +457,11 @@ function install_plugin_information() {
|
||||
echo "</div>\n";
|
||||
|
||||
$date_format = __( 'M j, Y @ H:i' );
|
||||
$last_updated_timestamp = strtotime( $api->last_updated );
|
||||
|
||||
if ( ! empty( $api->last_updated ) ) {
|
||||
$last_updated_timestamp = strtotime( $api->last_updated );
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="<?php echo $_tab; ?>-content" class='<?php echo $_with_banner; ?>'>
|
||||
<div class="fyi">
|
||||
|
Loading…
Reference in New Issue
Block a user