mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
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:
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user