Make WordPress Core

Changeset 31933


Ignore:
Timestamp:
03/30/2015 07:21:01 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Revert [31911]. We want to preserve url and return URL parameters to make the experience smoother.

see #31782.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r31533 r31933  
    533533                <# if ( ! data.active ) { #>
    534534                    <div class="inactive-theme">
    535                         <a href="<?php echo add_query_arg( 'theme', '{{ data.id }}', remove_query_arg( 'theme' ) ); ?>" target="_top" class="button button-primary"><?php _e( 'Live Preview' ); ?></a>
     535                        <a href="<?php echo add_query_arg( 'theme', '{{ data.id }}' ); ?>" target="_top" class="button button-primary"><?php _e( 'Live Preview' ); ?></a>
    536536                    </div>
    537537                <# } #>
  • trunk/src/wp-includes/class-wp-customize-control.php

    r31911 r31933  
    12261226            <# if ( ! data.theme.active ) { #>
    12271227                <div class="theme-actions">
    1228                     <a class="button" href="{{ data.theme.actions.customize }}" target="_top"><?php _e( 'Live Preview' ); ?></a>
     1228                    <a class="button" href="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}' ); ?>" target="_top"><?php _e( 'Live Preview' ); ?></a>
    12291229                </div>
    12301230            <# } #>
Note: See TracChangeset for help on using the changeset viewer.