Customizer: Use proper preview URL for Live Preview links.

props mattwiebe.
fixes #31782.

git-svn-id: https://develop.svn.wordpress.org/trunk@31911 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-03-27 20:35:26 +00:00
parent ee4ba5c926
commit e054f53d9e
1 changed files with 1 additions and 1 deletions

View File

@ -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="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}', remove_query_arg( 'theme' ) ); ?>" target="_top"><?php _e( 'Live Preview' ); ?></a>
<a class="button" href="{{ data.theme.actions.customize }}" target="_top"><?php _e( 'Live Preview' ); ?></a>
</div>
<# } #>
</div>