Make WordPress Core


Ignore:
Timestamp:
07/30/2021 07:34:39 PM (4 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-comment-query.php

    r51298 r51518  
    325325         * @since 4.2.0
    326326         *
    327          * @param WP_Comment_Query $this The WP_Comment_Query instance (passed by reference).
     327         * @param WP_Comment_Query $query The WP_Comment_Query instance (passed by reference).
    328328         */
    329329        do_action_ref_array( 'parse_comment_query', array( &$this ) );
     
    371371         * @since 3.1.0
    372372         *
    373          * @param WP_Comment_Query $this Current instance of WP_Comment_Query (passed by reference).
     373         * @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference).
    374374         */
    375375        do_action_ref_array( 'pre_get_comments', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.