Changeset 48139
- Timestamp:
- 06/23/2020 11:09:04 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r48132 r48139 1453 1453 $regex = 1454 1454 '(?:' 1455 . '[_a-zA-Z][-_a-zA-Z0-9:.]*' 1455 . '[_a-zA-Z][-_a-zA-Z0-9:.]*' // Attribute name. 1456 1456 . '|' 1457 . '\[\[?[^\[\]]+\]\]?' // Shortcode in the name position implies unfiltered_html.1457 . '\[\[?[^\[\]]+\]\]?' // Shortcode in the name position implies unfiltered_html. 1458 1458 . ')' 1459 1459 . '(?:' // Attribute value. -
trunk/tests/phpunit/tests/kses.php
r48132 r48139 630 630 false, 631 631 ), 632 // using digit in attribute name should work632 // Using a digit in attribute name should work. 633 633 array( 634 634 'href="https://example.com/[shortcode attr=\'value\']" data-op3-timer-seconds="0"', 635 635 array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op3-timer-seconds="0"' ), 636 636 ), 637 // using underscore in attribute name should work637 // Using an underscore in attribute name should work. 638 638 array( 639 639 'href="https://example.com/[shortcode attr=\'value\']" data-op_timer-seconds="0"', 640 640 array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op_timer-seconds="0"' ), 641 641 ), 642 // using period in attribute name should work642 // Using a period in attribute name should work. 643 643 array( 644 644 'href="https://example.com/[shortcode attr=\'value\']" data-op.timer-seconds="0"', 645 645 array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op.timer-seconds="0"' ), 646 646 ), 647 // using digit at a beginning of attribute name should return false647 // Using a digit at the beginning of attribute name should return false. 648 648 array( 649 649 'href="https://example.com/[shortcode attr=\'value\']" 3data-op-timer-seconds="0"',
Note: See TracChangeset
for help on using the changeset viewer.