mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Pass WP_Customize_Setting instance to 'customize_preview_*' and 'customize_update_*' actions.
props dustyn, DrewAPicture. fixes #27979. Built from https://develop.svn.wordpress.org/trunk@28767 git-svn-id: http://core.svn.wordpress.org/trunk@28580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd7618399e
commit
f0a3d5cfa8
@ -130,8 +130,10 @@ class WP_Customize_Setting {
|
|||||||
* The dynamic portion of the hook name, $this->id, refers to the setting ID.
|
* The dynamic portion of the hook name, $this->id, refers to the setting ID.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
|
*
|
||||||
|
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||||
*/
|
*/
|
||||||
do_action( 'customize_preview_' . $this->id );
|
do_action( 'customize_preview_' . $this->id, $this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,9 +248,10 @@ class WP_Customize_Setting {
|
|||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
*
|
*
|
||||||
* @param mixed $value Value of the setting.
|
* @param mixed $value Value of the setting.
|
||||||
|
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||||
*/
|
*/
|
||||||
return do_action( 'customize_update_' . $this->type, $value );
|
return do_action( 'customize_update_' . $this->type, $value, $this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user