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
This commit is contained in:
parent
1ab6f67ef5
commit
0612bb00e0
@ -6918,7 +6918,9 @@ function wp_get_default_update_php_url() {
|
|||||||
function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) {
|
function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) {
|
||||||
$annotation = wp_get_update_php_annotation();
|
$annotation = wp_get_update_php_annotation();
|
||||||
|
|
||||||
echo $before . $annotation . $after;
|
if ( $annotation ) {
|
||||||
|
echo $before . $annotation . $after;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user