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:
parent
b8fd9d997e
commit
566fd5da8d
@ -172,8 +172,10 @@ class WP_Customize_Setting {
|
|||||||
* the base slug of the setting name.
|
* the base slug of the setting name.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @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 );
|
$this->update( $value );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user