Plugins: In `list_plugin_updates()`, only display the annotation and the surrounding tags if it's not empty.

Props afragen.
Fixes #46680.

git-svn-id: https://develop.svn.wordpress.org/trunk@45184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-04-12 21:51:58 +00:00
parent a8e7d339ae
commit e844945b31
1 changed files with 6 additions and 1 deletions

View File

@ -304,7 +304,12 @@ function list_plugin_updates() {
__( '<a href="%s">Learn more about updating PHP.</a>' ),
esc_url( wp_get_update_php_url() )
);
$compat .= '</p><p><em>' . wp_get_update_php_annotation() . '</em>';
$annotation = wp_get_update_php_annotation();
if ( $annotation ) {
$compat .= '</p><p><em>' . $annotation . '</em>';
}
}
// Get the upgrade notice for the new plugin version.