Plugins: In list_plugin_updates()
, only display the annotation and the surrounding tags if it's not empty.
Props afragen. Fixes #46680. git-svn-id: https://develop.svn.wordpress.org/trunk@45184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a8e7d339ae
commit
e844945b31
@ -304,7 +304,12 @@ function list_plugin_updates() {
|
|||||||
__( '<a href="%s">Learn more about updating PHP.</a>' ),
|
__( '<a href="%s">Learn more about updating PHP.</a>' ),
|
||||||
esc_url( wp_get_update_php_url() )
|
esc_url( wp_get_update_php_url() )
|
||||||
);
|
);
|
||||||
$compat .= '</p><p><em>' . wp_get_update_php_annotation() . '</em>';
|
|
||||||
|
$annotation = wp_get_update_php_annotation();
|
||||||
|
|
||||||
|
if ( $annotation ) {
|
||||||
|
$compat .= '</p><p><em>' . $annotation . '</em>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the upgrade notice for the new plugin version.
|
// Get the upgrade notice for the new plugin version.
|
||||||
|
Loading…
Reference in New Issue
Block a user