Make WordPress Core

Ticket #46680: 46680.2.diff

File 46680.2.diff, 865 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..7a5b0216f2 100644
    a b function list_plugin_updates() { 
    300300                if ( ! $compatible_php && current_user_can( 'update_php' ) ) {
    301301                        $compat .= '<br>' . __( 'This update doesn&#8217;t work with your version of PHP.' ) . '&nbsp;';
    302302                        /* translators: %s: Update PHP page URL */
    303                         $compat .= sprintf(
     303                        $compat    .= sprintf(
    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                        $annotation = wp_get_update_php_annotation();
     308                        if ( $annotation ) {
     309                                $compat .= '</p><p><em>' . $annotation . '</em>';
     310                        }
    308311                }
    309312
    310313                // Get the upgrade notice for the new plugin version.