WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/24/2012 03:29:51 AM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Change 'Return to...' link to 'Cancel' and move 'Save' button to header. props helenyhou, fixes #20692, see #19910.

File:
1 edited

Legend:

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

    r20852 r20864  
    15901590 */
    15911591function _wp_customize_loader_localize() {
    1592     $l10n = array( 'url'  => admin_url( 'admin.php' ) );
    1593 
    1594     if ( is_admin() )
    1595         $l10n[ 'back' ] = sprintf( __( '← Return to %s' ), get_admin_page_title() );
    1596 
    1597     wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', $l10n );
     1592    wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', array(
     1593        'url' => admin_url( 'admin.php' ),
     1594    ) );
    15981595}
    15991596add_action( 'admin_enqueue_scripts', '_wp_customize_loader_localize' );
Note: See TracChangeset for help on using the changeset viewer.