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-term-query.php

    r51301 r51518  
    281281         * @since 4.6.0
    282282         *
    283          * @param WP_Term_Query $this Current instance of WP_Term_Query.
     283         * @param WP_Term_Query $query Current instance of WP_Term_Query.
    284284         */
    285285        do_action( 'parse_term_query', $this );
     
    355355         * @since 4.6.0
    356356         *
    357          * @param WP_Term_Query $this Current instance of WP_Term_Query (passed by reference).
     357         * @param WP_Term_Query $query Current instance of WP_Term_Query (passed by reference).
    358358         */
    359359        do_action_ref_array( 'pre_get_terms', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.