Make WordPress Core


Ignore:
Timestamp:
06/26/2020 12:25:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Improve the error message displayed when activating a plugin that requires a higher version of PHP or WordPress.

This adds some extra details to the message:

  • The current PHP or WordPress version.
  • The plugin's minimum required PHP or WordPress version.
  • A link to the support documentation on how to update PHP.

Props stuffradio, johnbillion, garrett-eclipse, sabernhardt, williampatton, SergeyBiryukov.
Fixes #48245.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/upgrade.php

    r48126 r48172  
    8383
    8484    /* translators: %s: URL to Update PHP page. */
    85     $php_update_message = '</p><p>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) );
     85    $php_update_message = '</p><p>' . sprintf(
     86        __( '<a href="%s">Learn more about updating PHP</a>.' ),
     87        esc_url( wp_get_update_php_url() )
     88    );
    8689
    8790    $annotation = wp_get_update_php_annotation();
     91
    8892    if ( $annotation ) {
    8993        $php_update_message .= '</p><p><em>' . $annotation . '</em>';
Note: See TracChangeset for help on using the changeset viewer.