Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#53457 closed enhancement (fixed)

Rename `$this` when used in `@param` tags for 5.9

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Plugins Keywords: has-patch
Focuses: docs Cc:


Previously: #52243

[49946] fixed several instances of $this being used as a param name in actions and filters, but there are many more.

Change History (4)

#1 @johnbillion
3 years ago

  • Owner set to johnbillion
  • Status changed from new to accepted

This ticket was mentioned in PR #1396 on WordPress/wordpress-develop by johnbillion.

3 years ago

  • Keywords has-patch added

#3 @johnbillion
3 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 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

Note: See TracTickets for help on using tickets.