WordPress.org

Make WordPress Core

Changeset 31911


Ignore:
Timestamp:
03/27/2015 08:35:26 PM (4 years ago)
Author:
ocean90
Message:

Customizer: Use proper preview URL for Live Preview links.

props mattwiebe.
fixes #31782.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

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