From aab399efbc6c0f6b48ec99cabc7d3c3f8bccc3ca Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 16 Apr 2012 14:36:47 +0000 Subject: [PATCH] Theme Customizer: Stick to wp_customize_url() instead of wp_customize_href(). Switch argument order so it is stylesheet-template. (Template is hypothetically optional, but the function will not support that.) see #19910. Move to ->display('Name'), as ->get('Name') is a raw, untranslated version of the header. git-svn-id: http://svn.automattic.com/wordpress/trunk@20477 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-themes-list-table.php | 4 ++-- wp-admin/includes/class-wp-upgrader.php | 4 ++-- wp-admin/themes.php | 2 +- wp-includes/theme.php | 15 ++------------- 4 files changed, 7 insertions(+), 18 deletions(-) diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index ca29f73749..5d18ded1d0 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -136,7 +136,7 @@ class WP_Themes_List_Table extends WP_List_Table { . esc_attr( sprintf( __( 'Activate “%s”' ), $title ) ) . '">' . __( 'Activate' ) . ''; $actions[] = '' . __( 'Preview' ) . '' - . '' + . '' . __( 'Customize' ) . ''; if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) $actions['delete'] = ' - class="screenshot load-customize hide-if-no-customize"> + get_screenshot() ) : ?> diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 88bc933ad7..4ff7cf587b 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1516,7 +1516,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { $install_actions = array(); $install_actions['preview'] = '' . __('Preview') . ''; - $install_actions['preview'] .= '' . __('Activate') . ''; if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) @@ -1579,7 +1579,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); $update_actions['preview'] = '' . __('Preview') . ''; - $update_actions['preview'] .= '' . __('Customize') . ''; + $update_actions['preview'] .= '' . __('Customize') . ''; $update_actions['activate'] = '' . __('Activate') . ''; if ( ( ! $this->result || is_wp_error( $this->result ) ) || $stylesheet == get_stylesheet() ) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 041ddcd919..e1b4d64e8b 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -122,7 +122,7 @@ $class = $screenshot ? 'has-screenshot' : '';
- get_template(), $ct->get_stylesheet() ); ?> class="load-customize hide-if-no-customize" title="get('Name') ) ); ?>"> +