[wp-trac] [WordPress Trac] #53457: Rename `$this` when used in `@param` tags for 5.9
WordPress Trac
noreply at wordpress.org
Fri Jul 30 19:34:54 UTC 2021
#53457: Rename `$this` when used in `@param` tags for 5.9
-------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Plugins | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
-------------------------+--------------------------
Changes (by johnbillion):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"51518" 51518]:
{{{
#!CommitTicketReference repository="" revision="51518"
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
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53457#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list