WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/29/2015 06:35:40 PM (5 years ago)
Author:
ocean90
Message:

Themes: Remove legacy theme preview.

The pre-3.4 theme previewer doesn't work when using a static front page.
We kept the old theme preview for no-JS and some browsers that were less capable. But since browsers are doing a better job today we don't need to continue fixing/shipping this legacy code. Bye!

fixes #33178.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r33153 r33492  
    214214    $allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );
    215215
    216     $fallback_url = add_query_arg( array(
    217         'preview'        => 1,
    218         'template'       => $wp_customize->get_template(),
    219         'stylesheet'     => $wp_customize->get_stylesheet(),
    220         'preview_iframe' => true,
    221         'TB_iframe'      => 'true'
    222     ), home_url( '/' ) );
    223 
    224216    $login_url = add_query_arg( array(
    225217        'interim-login' => 1,
     
    240232            'allowed'       => array_map( 'esc_url_raw', $allowed_urls ),
    241233            'isCrossDomain' => $cross_domain,
    242             'fallback'      => esc_url_raw( $fallback_url ),
    243234            'home'          => esc_url_raw( home_url( '/' ) ),
    244235            'login'         => esc_url_raw( $login_url ),
Note: See TracChangeset for help on using the changeset viewer.