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
This commit is contained in:
Sergey Biryukov 2014-06-17 23:58:16 +00:00
parent 46f17ee039
commit 8b4b3697e0
1 changed files with 3 additions and 1 deletions

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