From d5f198676b27cbb1a18b493d43f47ed6baa0c51a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Mar 2019 22:37:51 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 4efc00f389..ff7841aba8 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -6918,7 +6918,9 @@ function wp_get_default_update_php_url() { function wp_update_php_annotation( $before = '

', $after = '

' ) { $annotation = wp_get_update_php_annotation(); - echo $before . $annotation . $after; + if ( $annotation ) { + echo $before . $annotation . $after; + } } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index f55b6b4971..20ea471ff7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.