Admin: Improve logic of PHP version check on about page.

Props noisysocks, peterwilsoncc.
See #46161.



git-svn-id: https://develop.svn.wordpress.org/trunk@44735 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2019-02-08 01:52:17 +00:00
parent 985958f870
commit 4b1885c836
3 changed files with 49 additions and 46 deletions
+4 -1
View File
@@ -88,7 +88,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<div class="feature-section one-col cta">
<?php if ( true ) : ?>
<?php
$response = wp_check_php_version();
if ( $response && isset( $response['is_acceptable'] ) && ! $response['is_acceptable'] && current_user_can( 'update_php' ) ) :
?>
<p><em><?php _e( 'WordPress has detected your site is running an outdated version of PHP. You will see this notice on your dashboard with instructions for contacting your host.' ); ?></em></p>
<?php endif; ?>