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

    r49946 r51518  
    10151015         *
    10161016         * @param string    $screen_settings Screen settings.
    1017          * @param WP_Screen $this            WP_Screen object.
     1017         * @param WP_Screen $screen          WP_Screen object.
    10181018         */
    10191019        $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this );
     
    10301030         * @param bool      $show_screen Whether to show Screen Options tab.
    10311031         *                               Default true.
    1032          * @param WP_Screen $this        Current WP_Screen instance.
     1032         * @param WP_Screen $screen      Current WP_Screen instance.
    10331033         */
    10341034        $this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
Note: See TracChangeset for help on using the changeset viewer.