Changeset 52229 for trunk/src/wp-includes/kses.php
- Timestamp:
- 11/21/2021 05:15:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r52128 r52229 460 460 461 461 /** 462 * @var string[] $allowedentitynames Array of KSES allowed HTML entit ity names.462 * @var string[] $allowedentitynames Array of KSES allowed HTML entity names. 463 463 * @since 1.0.0 464 464 */ … … 720 720 721 721 /** 722 * @var string[] $allowedxmlentitynames Array of KSES allowed XML entit ity names.722 * @var string[] $allowedxmlentitynames Array of KSES allowed XML entity names. 723 723 * @since 5.5.0 724 724 */ 725 $allowedxml namedentities = array(725 $allowedxmlentitynames = array( 726 726 'amp', 727 727 'lt', … … 1907 1907 */ 1908 1908 function wp_kses_xml_named_entities( $matches ) { 1909 global $allowedentitynames, $allowedxml namedentities;1909 global $allowedentitynames, $allowedxmlentitynames; 1910 1910 1911 1911 if ( empty( $matches[1] ) ) { … … 1915 1915 $i = $matches[1]; 1916 1916 1917 if ( in_array( $i, $allowedxml namedentities, true ) ) {1917 if ( in_array( $i, $allowedxmlentitynames, true ) ) { 1918 1918 return "&$i;"; 1919 1919 } elseif ( in_array( $i, $allowedentitynames, true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.