Site health:

- Add a check to `wp_check_php_version()` whether the current PHP version is lower than the next (desired) minimum version.
- Set the next desired minimum PHP version to 7.2.
- Use that check to update the warnings in the `wp_dashboard_php_nag()` widget, and on the Site Health screen.

Props Clorith, SergeyBiryukov, ironprogrammer, azaozz.
See #56199.

git-svn-id: https://develop.svn.wordpress.org/trunk@54169 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2022-09-14 22:17:53 +00:00
parent fe87f8e37a
commit 0fdfa266af
4 changed files with 113 additions and 40 deletions

View File

@@ -1186,7 +1186,8 @@ a.rsswidget {
padding-right: 6px;
}
#dashboard_php_nag.php-insecure .dashicons-warning {
#dashboard_php_nag.php-no-security-updates .dashicons-warning,
#dashboard_php_nag.php-version-lower-than-future-minimum .dashicons-warning {
color: #d63638;
}
@@ -1198,14 +1199,15 @@ a.rsswidget {
margin: 12px 0;
}
#dashboard_php_nag h3 {
font-weight: 600;
}
#dashboard_php_nag .button .dashicons-external {
line-height: 25px;
}
.bigger-bolder-text {
font-weight: 600;
font-size: 14px;
}
/* =Media Queries
-------------------------------------------------------------- */