Make WordPress Core

Ticket #46680: 46680.diff

File 46680.diff, 608 bytes (added by afragen, 6 years ago)
  • wp-admin/update-core.php

    diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
    index 7239243333..9c9fe03ec1 100644
    a b function list_plugin_updates() { 
    304304                                __( '<a href="%s">Learn more about updating PHP.</a>' ),
    305305                                esc_url( wp_get_update_php_url() )
    306306                        );
    307                         $compat .= '</p><p><em>' . wp_get_update_php_annotation() . '</em>';
     307                        $notice  = wp_get_update_php_annotation();
     308                        $compat .= empty( $notice ) ? null : '</p><p><em>' . wp_get_update_php_annotation() . '</em>';
    308309                }
    309310
    310311                // Get the upgrade notice for the new plugin version.