From 8b4b3697e0e176c6812d33084b8a62c06e62a51a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Jun 2014 23:58:16 +0000 Subject: [PATCH] Pass WP_Customize_Setting instance to 'customize_save_*' action. props danielbachhuber. fixes #27979. Built from https://develop.svn.wordpress.org/trunk@28769 git-svn-id: http://core.svn.wordpress.org/trunk@28582 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-setting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index b61e397e55..33707de9f6 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/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 ); }