mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Docs: Replace $this in hook param docs with more appropriate names.
`$this` is a pseudo-variable that cannot be used as the name of a function parameter, so renaming these helps prevent errors when implementing hook callback functions. Fixes #53457 git-svn-id: https://develop.svn.wordpress.org/trunk@51518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -394,7 +394,7 @@ class WP_Customize_Setting {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
|
||||
*/
|
||||
do_action( "customize_preview_{$this->id}", $this );
|
||||
|
||||
@@ -406,7 +406,7 @@ class WP_Customize_Setting {
|
||||
*
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
|
||||
*/
|
||||
do_action( "customize_preview_{$this->type}", $this );
|
||||
}
|
||||
@@ -533,7 +533,7 @@ class WP_Customize_Setting {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
|
||||
*/
|
||||
do_action( "customize_save_{$id_base}", $this );
|
||||
|
||||
@@ -569,8 +569,8 @@ class WP_Customize_Setting {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param mixed $value Value of the setting.
|
||||
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||
* @param mixed $value Value of the setting.
|
||||
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
|
||||
*/
|
||||
return apply_filters( "customize_sanitize_{$this->id}", $value, $this );
|
||||
}
|
||||
@@ -697,8 +697,8 @@ class WP_Customize_Setting {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param mixed $value Value of the setting.
|
||||
* @param WP_Customize_Setting $this WP_Customize_Setting instance.
|
||||
* @param mixed $value Value of the setting.
|
||||
* @param WP_Customize_Setting $setting WP_Customize_Setting instance.
|
||||
*/
|
||||
do_action( "customize_update_{$this->type}", $value, $this );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user