mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
65f7cdbce0
commit
d5f198676b
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user