Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#54899 closed defect (bug) (fixed)

Docs: replace reference to renamed $allowedxmlnamedentities global variable in wp_kses_xml_named_entities function's docblock

Reported by: davidbinda's profile david.binda Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.0 Priority: normal
Severity: normal Version: 5.9
Component: Formatting Keywords: has-patch
Focuses: docs Cc:

Description

The r48072 introduced a wrongly named $allowedxmlnamedentities global variable (
instead of correct $allowedxmlentitynames ), which was later fixed r52229, where almost all instances of $allowedxmlnamedentities were replaced by $allowedxmlentitynames, however the old name of the global variable is still present in the docblock for the wp_kses_xml_named_entities function. See https://core.trac.wordpress.org/browser/trunk/src/wp-includes/kses.php?rev=52326#L1928

Attachments (1)

54899.diff (469 bytes) - added by david.binda 3 years ago.

Download all attachments as: .zip

Change History (3)

@david.binda
3 years ago

#1 @SergeyBiryukov
3 years ago

  • Focuses docs added
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 6.0

#2 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 52639:

Docs: Correct @global tag in wp_kses_xml_named_entities().

This updates the variable name in the DocBlock to the correct one.

Follow-up to [48072], [52229].

Props david.binda.
Fixes #54899.

Note: See TracTickets for help on using tickets.