mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user