Customizer: Use proper preview URL for Live Preview links.

props mattwiebe.
fixes #31782.
Built from https://develop.svn.wordpress.org/trunk@31911


git-svn-id: http://core.svn.wordpress.org/trunk@31890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-03-27 20:36:27 +00:00
parent 007665e7be
commit 2e314d764e
2 changed files with 2 additions and 2 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>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta3-31910';
$wp_version = '4.2-beta3-31911';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.