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
This commit is contained in:
Sergey Biryukov 2014-06-17 23:57:19 +00:00
parent b8fd9d997e
commit 566fd5da8d

View File

@ -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 );
}