Changeset 56191 for trunk/src/wp-includes/kses.php
- Timestamp:
- 07/10/2023 10:36:06 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r56046 r56191 792 792 $value = $split[1]; 793 793 794 // Remove quotes surrounding $value. 795 // Also guarantee correct quoting in $attr for this one attribute. 794 /* 795 * Remove quotes surrounding $value. 796 * Also guarantee correct quoting in $attr for this one attribute. 797 */ 796 798 if ( '' === $value ) { 797 799 $quote = ''; … … 1443 1445 1444 1446 if ( 1 == $mode && false === array_key_exists( $attrname, $attrarr ) ) { 1445 // Special case, for when the attribute list ends with a valueless 1446 // attribute like "selected". 1447 /* 1448 * Special case, for when the attribute list ends with a valueless 1449 * attribute like "selected". 1450 */ 1447 1451 $attrarr[ $attrname ] = array( 1448 1452 'name' => $attrname, … … 1547 1551 // phpcs:enable 1548 1552 1549 // Although it is possible to reduce this procedure to a single regexp, 1550 // we must run that regexp twice to get exactly the expected result. 1553 /* 1554 * Although it is possible to reduce this procedure to a single regexp, 1555 * we must run that regexp twice to get exactly the expected result. 1556 */ 1551 1557 1552 1558 $validation = "%^($regex)+$%";
Note: See TracChangeset
for help on using the changeset viewer.