From 566fd5da8dcc11f5dde296a9561b23460efb48f7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Jun 2014 23:57:19 +0000 Subject: [PATCH] Pass WP_Customize_Setting instance to 'customize_save_*' action. props danielbachhuber. fixes #27979. git-svn-id: https://develop.svn.wordpress.org/trunk@28769 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-setting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-setting.php b/src/wp-includes/class-wp-customize-setting.php index b61e397e55..33707de9f6 100644 --- a/src/wp-includes/class-wp-customize-setting.php +++ b/src/wp-includes/class-wp-customize-setting.php @@ -172,8 +172,10 @@ class WP_Customize_Setting { * the base slug of the setting name. * * @since 3.4.0 + * + * @param WP_Customize_Setting $this WP_Customize_Setting instance. */ - do_action( 'customize_save_' . $this->id_data[ 'base' ] ); + do_action( 'customize_save_' . $this->id_data[ 'base' ], $this ); $this->update( $value ); }