Making WordPress.org

Changeset 10481


Ignore:
Timestamp:
12/02/2020 04:38:31 AM (5 years ago)
Author:
dd32
Message:

Theme Preview: Starter Content: Don't affect wp-admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php

    r10480 r10481  
    1818        // This plugin relies upon the object cache being the internal WordPress per-request cache.
    1919        if ( wp_using_ext_object_cache() ) {
     20            return;
     21        }
     22
     23        if ( is_admin() ) {
    2024            return;
    2125        }
     
    515519/**
    516520 * Define a custom WP_Customize_Manager class that claims this request is a customizer preview request.
    517  * 
     521 *
    518522 * This is needed as many themes (including 2020/2021) limit starter content to customizer preview requests.
    519  * 
     523 *
    520524 * As PHP cannot handle nested classes, this is defined in a function outside of the above class.
    521525 */
Note: See TracChangeset for help on using the changeset viewer.