mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
46f17ee039
commit
8b4b3697e0
@ -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