From d8a59791f0ca230231fbd7b6cf5419fba918d747 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 23 Sep 2015 15:09:42 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/plugin-install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index 6c06e604aa..c89591e0de 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -457,7 +457,11 @@ function install_plugin_information() { echo "\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 ); + } + ?>