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:
John Blackbourn
2021-07-30 19:34:39 +00:00
parent 17fb93149b
commit 4205214eba
20 changed files with 50 additions and 50 deletions
+4 -4
View File
@@ -139,7 +139,7 @@ class WP {
* @since 3.5.0
*
* @param bool $bool Whether or not to parse the request. Default true.
* @param WP $this Current WordPress environment instance.
* @param WP $wp Current WordPress environment instance.
* @param array|string $extra_query_vars Extra passed query variables.
*/
if ( ! apply_filters( 'do_parse_request', true, $this, $extra_query_vars ) ) {
@@ -383,7 +383,7 @@ class WP {
*
* @since 2.1.0
*
* @param WP $this Current WordPress environment instance (passed by reference).
* @param WP $wp Current WordPress environment instance (passed by reference).
*/
do_action_ref_array( 'parse_request', array( &$this ) );
}
@@ -522,7 +522,7 @@ class WP {
*
* @since 2.1.0
*
* @param WP $this Current WordPress environment instance (passed by reference).
* @param WP $wp Current WordPress environment instance (passed by reference).
*/
do_action_ref_array( 'send_headers', array( &$this ) );
}
@@ -758,7 +758,7 @@ class WP {
*
* @since 2.1.0
*
* @param WP $this Current WordPress environment instance (passed by reference).
* @param WP $wp Current WordPress environment instance (passed by reference).
*/
do_action_ref_array( 'wp', array( &$this ) );
}