From 0612bb00e04dc7bc414bf140bd1ea443e87560c5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Mar 2019 22:36:37 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@45045 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 4efc00f389..ff7841aba8 100644 --- a/src/wp-includes/functions.php +++ b/src/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; + } } /**