Make WordPress Core


Ignore:
Timestamp:
07/30/2021 07:34:39 PM (5 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r51329 r51518  
    833833             * @since 4.6.0 `$translations` was added as a possible argument to `$hook_extra`.
    834834             *
    835              * @param WP_Upgrader $this WP_Upgrader instance. In other contexts, $this, might be a
    836              *                          Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
     835             * @param WP_Upgrader $upgrader   WP_Upgrader instance. In other contexts this might be a
     836             *                                Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
    837837             * @param array       $hook_extra {
    838838             *     Array of bulk item update data.
Note: See TracChangeset for help on using the changeset viewer.