[wp-trac] [WordPress Trac] #54060: kses.php global $allowedxmlentitynames naming

WordPress Trac noreply at wordpress.org
Thu Sep 2 09:18:39 UTC 2021


#54060: kses.php global $allowedxmlentitynames naming
--------------------------+------------------------------
 Reporter:  ovidiul       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ovidiul):

 To clarify this more,

 I am referring to these [code
 lines]https://github.com/WordPress/WordPress/blob/master/wp-
 includes/kses.php#L715-L724 and
 [this]https://github.com/WordPress/WordPress/blob/master/wp-
 includes/kses.php#L50

 {{{#!php
 <?php
 /**
          * @var string[] $allowedxmlentitynames Array of KSES allowed XML
 entitity names.
          * @since 5.5.0
          */
         $allowedxmlnamedentities = array(
                 'amp',
                 'lt',
                 'gt',
                 'apos',
                 'quot',
         );
 }}}


 {{{#!php
 <?php
 global $allowedposttags, $allowedtags, $allowedentitynames,
 $allowedxmlentitynames;
 }}}


 so the actual **$allowedxmlnamedentities** variable name is not being set
 as global in the file.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54060#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list