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

git-svn-id: https://develop.svn.wordpress.org/trunk@20864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-05-24 03:29:51 +00:00
parent 1ec203203c
commit 4b9f6216e9
5 changed files with 24 additions and 33 deletions

View File

@@ -1589,12 +1589,9 @@ add_action( 'plugins_loaded', '_wp_customize_include' );
* @since 3.4.0
*/
function _wp_customize_loader_localize() {
$l10n = array( 'url' => admin_url( 'admin.php' ) );
if ( is_admin() )
$l10n[ 'back' ] = sprintf( __( '← Return to %s' ), get_admin_page_title() );
wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', $l10n );
wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', array(
'url' => admin_url( 'admin.php' ),
) );
}
add_action( 'admin_enqueue_scripts', '_wp_customize_loader_localize' );