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:
parent
0122e035b0
commit
ab6c396531
@ -400,7 +400,7 @@ foreach ( $themes as $theme ) :
|
|||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="notice inline notice-error notice-alt"><p>
|
<div class="notice inline notice-error notice-alt"><p>
|
||||||
<?php
|
<?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’t work with your versions of WordPress and PHP.' );
|
_e( 'There is a new version available, but it doesn’t work with your versions of WordPress and PHP.' );
|
||||||
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
|
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
|
||||||
printf(
|
printf(
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user