From 7ce012ef87a4b1011e2de32bedc1640897a8a967 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Fri, 23 Mar 2012 00:16:46 +0000 Subject: [PATCH] Theme Customizer: Use a more complex name for the save parameter to prevent the customizer from clashing with plugins. see #19910. git-svn-id: http://svn.automattic.com/wordpress/trunk@20266 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize.php | 4 ++-- wp-includes/customize-controls.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-customize.php b/wp-includes/class-wp-customize.php index 2a345c87b3..9eabe31048 100644 --- a/wp-includes/class-wp-customize.php +++ b/wp-includes/class-wp-customize.php @@ -63,7 +63,7 @@ final class WP_Customize { if ( ! isset( $_REQUEST['customize'] ) || 'on' != $_REQUEST['customize'] ) return; - if ( ! $this->set_stylesheet() || isset( $_REQUEST['save'] ) ) + if ( ! $this->set_stylesheet() || isset( $_REQUEST['save_customize_controls'] ) ) return; $this->previewing = true; @@ -270,7 +270,7 @@ final class WP_Customize { * @since 3.4.0 */ public function admin_init() { - if ( isset( $_REQUEST['save'] ) ) + if ( isset( $_REQUEST['save_customize_controls'] ) ) $this->save(); wp_enqueue_script( 'customize-loader' ); diff --git a/wp-includes/customize-controls.php b/wp-includes/customize-controls.php index 4ce2127b68..fcc220534b 100644 --- a/wp-includes/customize-controls.php +++ b/wp-includes/customize-controls.php @@ -44,7 +44,7 @@ do_action( 'customize_controls_print_scripts' ); ?> -
+