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 Built from https://develop.svn.wordpress.org/trunk@51518 git-svn-id: http://core.svn.wordpress.org/trunk@51129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -346,7 +346,7 @@ final class WP_Customize_Manager {
|
||||
* @see WP_Customize_Manager::__construct()
|
||||
*
|
||||
* @param string[] $components Array of core components to load.
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
$components = apply_filters( 'customize_loaded_components', $this->components, $this );
|
||||
|
||||
@@ -691,7 +691,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'start_previewing_theme', $this );
|
||||
}
|
||||
@@ -729,7 +729,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'stop_previewing_theme', $this );
|
||||
}
|
||||
@@ -928,7 +928,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'customize_register', $this );
|
||||
|
||||
@@ -1859,8 +1859,8 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param mixed $value Unsanitized setting post value.
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param mixed $value Unsanitized setting post value.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( "customize_post_value_set_{$setting_id}", $value, $this );
|
||||
|
||||
@@ -1876,7 +1876,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @param string $setting_id Setting ID.
|
||||
* @param mixed $value Unsanitized setting post value.
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'customize_post_value_set', $setting_id, $value, $this );
|
||||
}
|
||||
@@ -1937,7 +1937,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'customize_preview_init', $this );
|
||||
}
|
||||
@@ -2592,7 +2592,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @param array $response Additional information passed back to the 'saved'
|
||||
* event on `wp.customize`.
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
$response = apply_filters( 'customize_save_response', $response, $this );
|
||||
|
||||
@@ -2760,7 +2760,7 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
do_action( 'customize_save_validation_before', $this );
|
||||
|
||||
@@ -4754,9 +4754,9 @@ final class WP_Customize_Manager {
|
||||
*
|
||||
* @since 4.2.0
|
||||
*
|
||||
* @param string[] $nonces Array of refreshed nonces for save and
|
||||
* preview actions.
|
||||
* @param WP_Customize_Manager $this WP_Customize_Manager instance.
|
||||
* @param string[] $nonces Array of refreshed nonces for save and
|
||||
* preview actions.
|
||||
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
|
||||
*/
|
||||
$nonces = apply_filters( 'customize_refresh_nonces', $nonces, $this );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user