Make WordPress Core


Ignore:
Timestamp:
05/18/2020 04:01:38 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Themes: Prevent installation of themes that require a higher version of PHP or WordPress.

Props afragen.
Fixes #49653. See #48491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r47663 r47819  
    58545854
    58555855                // Map available theme properties to installed theme properties.
    5856                 $theme->id           = $theme->slug;
    5857                 $theme->screenshot   = array( $theme->screenshot_url );
    5858                 $theme->authorAndUri = wp_kses( $theme->author['display_name'], $themes_allowedtags );
     5856                $theme->id            = $theme->slug;
     5857                $theme->screenshot    = array( $theme->screenshot_url );
     5858                $theme->authorAndUri  = wp_kses( $theme->author['display_name'], $themes_allowedtags );
     5859                $theme->compatibleWP  = is_wp_version_compatible( $theme->requires );
     5860                $theme->compatiblePHP = is_php_version_compatible( $theme->requires_php );
    58595861
    58605862                if ( isset( $theme->parent ) ) {
Note: See TracChangeset for help on using the changeset viewer.