WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 3 months ago

Last modified 3 months ago

#53457 closed enhancement (fixed)

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

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

Description

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
4 months ago

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

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


4 months ago

  • Keywords has-patch added

#3 @johnbillion
3 months 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.