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-rewrite.php

    r51330 r51518  
    14541454         * @since 1.5.0
    14551455         *
    1456          * @param WP_Rewrite $this Current WP_Rewrite instance (passed by reference).
     1456         * @param WP_Rewrite $wp_rewrite Current WP_Rewrite instance (passed by reference).
    14571457         */
    14581458        do_action_ref_array( 'generate_rewrite_rules', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.