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-includes/class-wp-roles.php

    r48586 r51518  
    297297         * @since 4.7.0
    298298         *
    299          * @param WP_Roles $this A reference to the WP_Roles object.
     299         * @param WP_Roles $wp_roles A reference to the WP_Roles object.
    300300         */
    301301        do_action( 'wp_roles_init', $this );
Note: See TracChangeset for help on using the changeset viewer.