Customizer: Revert [31911]. We want to preserve url
and return
URL parameters to make the experience smoother.
see #31782. git-svn-id: https://develop.svn.wordpress.org/trunk@31933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e6614d639b
commit
c0104d6cc2
@ -532,7 +532,7 @@ function customize_themes_print_templates() {
|
||||
<div class="theme-actions">
|
||||
<# if ( ! data.active ) { #>
|
||||
<div class="inactive-theme">
|
||||
<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>
|
||||
<a href="<?php echo add_query_arg( 'theme', '{{ data.id }}' ); ?>" target="_top" class="button button-primary"><?php _e( 'Live Preview' ); ?></a>
|
||||
</div>
|
||||
<# } #>
|
||||
</div>
|
||||
|
@ -1225,7 +1225,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
||||
|
||||
<# if ( ! data.theme.active ) { #>
|
||||
<div class="theme-actions">
|
||||
<a class="button" href="{{ data.theme.actions.customize }}" target="_top"><?php _e( 'Live Preview' ); ?></a>
|
||||
<a class="button" href="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}' ); ?>" target="_top"><?php _e( 'Live Preview' ); ?></a>
|
||||
</div>
|
||||
<# } #>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user