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

    r51513 r51518  
    556556         *
    557557         * @param string        $where WHERE clause of the date query.
    558          * @param WP_Date_Query $this The WP_Date_Query instance.
     558         * @param WP_Date_Query $query The WP_Date_Query instance.
    559559         */
    560560        return apply_filters( 'get_date_sql', $where, $this );
Note: See TracChangeset for help on using the changeset viewer.