Make WordPress Core

Opened 5 years ago

Closed 5 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: david.binda Owned by: SergeyBiryukov
Priority: normal Milestone: 6.0
Component: Formatting Version: 5.9
Severity: normal Keywords: has-patch
Cc: Focuses: docs

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 5 years ago.

Download all attachments as: .zip

Change History (3)

@david.binda
5 years ago

#1 @SergeyBiryukov
5 years ago

  • Focuses docs added
  • Keywords has-patch added
  • Milestone Awaiting Review → 6.0

#2 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.