Make WordPress Core


Ignore:
Timestamp:
02/08/2019 01:52:17 AM (7 years ago)
Author:
peterwilsoncc
Message:

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

Props noisysocks, peterwilsoncc.
See #46161.

File:
1 edited

Legend:

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

    r44734 r44735  
    8989
    9090        <div class="feature-section one-col cta">
    91             <?php if ( true ) : ?>
     91            <?php
     92            $response = wp_check_php_version();
     93            if ( $response && isset( $response['is_acceptable'] ) && ! $response['is_acceptable'] && current_user_can( 'update_php' ) ) :
     94                ?>
    9295                <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>
    9396            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.