Commit e24d341b authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Themes: Correct the logic for displaying a message in theme grid if a theme...

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: https://core.svn.wordpress.org/trunk@48415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 0a262e51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(
+1 −1
Original line number Diff line number Diff line
@@ -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.