Make WordPress Core


Ignore:
Timestamp:
03/12/2018 04:42:11 PM (7 years ago)
Author:
flixos90
Message:

General: Introduce dashboard widget to inform administrators about outdated PHP versions.

This new dashboard widget is shown on WordPress sites which are powered by a PHP version which WordPress considers outdated, in order to inform site owners about the resulting problems and to explain how to upgrade to a supported version. An education page for that purpose has been previously created that the widget links to. The link is translatable so that localized versions of the page can be referred to as they become available.

The nag follows the example of the Browse Happy dashboard widget and is only visible for administrators, or network administrators when using multisite. To determine whether it needs to be displayed, a new wordpress.org API introduced prior is called that handles the version logic in a centralized location.

Props flixos90, hedgefield, schlessera.
Fixes #41191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r42343 r42832  
    237237            'update_languages'       => array( 'administrator' ),
    238238            'deactivate_plugins'     => array( 'administrator' ),
     239            'upgrade_php'            => array( 'administrator' ),
    239240
    240241            'edit_categories'        => array( 'administrator', 'editor' ),
     
    268269            'update_languages'       => array(),
    269270            'deactivate_plugins'     => array(),
     271            'upgrade_php'            => array(),
    270272
    271273            'customize'              => array( 'administrator' ),
Note: See TracChangeset for help on using the changeset viewer.