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.
Built from https://develop.svn.wordpress.org/trunk@48653


git-svn-id: http://core.svn.wordpress.org/trunk@48415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-28 00:43:02 +00:00
parent 0122e035b0
commit ab6c396531
2 changed files with 2 additions and 2 deletions

View File

@ -400,7 +400,7 @@ foreach ( $themes as $theme ) :
<?php else : ?>
<div class="notice inline notice-error notice-alt"><p>
<?php
if ( $theme['updateResponse']['compatibleWP'] && $theme['updateResponse']['compatiblePHP'] ) {
if ( ! $theme['updateResponse']['compatibleWP'] && ! $theme['updateResponse']['compatiblePHP'] ) {
_e( 'There is a new version available, but it doesn&#8217;t work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf(

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-beta4-48652';
$wp_version = '5.5-beta4-48653';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.