Make WordPress Core


Ignore:
Timestamp:
07/28/2020 11:32:53 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Themes: Display a message on Themes list table if a theme update requires a higher version of PHP or WordPress.

This applies to the Themes screen in Multisite network admin.

Props afragen, SergeyBiryukov.
Fixes #48507. See #48491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r48418 r48660  
    562562                }
    563563
    564                 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && get_option( 'stylesheet' ) !== $stylesheet && get_option( 'template' ) !== $stylesheet ) {
     564                if ( ! $allowed && ! $this->is_site_themes
     565                        && current_user_can( 'delete_themes' )
     566                        && get_option( 'stylesheet' ) !== $stylesheet
     567                        && get_option( 'template' ) !== $stylesheet
     568                ) {
    565569                        $url = add_query_arg(
    566570                                array(
Note: See TracChangeset for help on using the changeset viewer.