WordPress.org

Make WordPress Core

Changeset 48653


Ignore:
Timestamp:
07/28/2020 12:41:56 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Themes: Correct the logic for displaying a message in theme grid if a theme update requires a higher version of PHP or WordPress.

This applies to the Themes screen fallback used when JS is turned off.

Follow-up to [48652].

See #48491.

File:
1 edited

Legend:

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

    r48652 r48653  
    401401            <div class="notice inline notice-error notice-alt"><p>
    402402                <?php
    403                 if ( $theme['updateResponse']['compatibleWP'] && $theme['updateResponse']['compatiblePHP'] ) {
     403                if ( ! $theme['updateResponse']['compatibleWP'] && ! $theme['updateResponse']['compatiblePHP'] ) {
    404404                    _e( 'There is a new version available, but it doesn&#8217;t work with your versions of WordPress and PHP.' );
    405405                    if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
Note: See TracChangeset for help on using the changeset viewer.