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

Props afragen.
Fixes #46680.
Built from https://develop.svn.wordpress.org/trunk@45184


git-svn-id: http://core.svn.wordpress.org/trunk@44993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-04-12 21:52:52 +00:00
parent b9c927411a
commit a2e273944a
2 changed files with 7 additions and 2 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.

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta3-45183';
$wp_version = '5.2-beta3-45184';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.