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

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


git-svn-id: http://core.svn.wordpress.org/trunk@44854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-03-27 22:37:51 +00:00
parent 65f7cdbce0
commit d5f198676b
2 changed files with 4 additions and 2 deletions

View File

@ -6918,7 +6918,9 @@ function wp_get_default_update_php_url() {
function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) {
$annotation = wp_get_update_php_annotation();
echo $before . $annotation . $after;
if ( $annotation ) {
echo $before . $annotation . $after;
}
}
/**

View File

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