WordPress.org

Make WordPress Core

Changeset 48139


Ignore:
Timestamp:
06/23/2020 11:09:04 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Use sentence case for comments in tests/kses.php, per the documentation standards.

Follow-up to [48132].

See #49464, #49572.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r48132 r48139  
    14531453    $regex =
    14541454        '(?:'
    1455         .     '[_a-zA-Z][-_a-zA-Z0-9:.]*'   // Attribute name.
     1455        .     '[_a-zA-Z][-_a-zA-Z0-9:.]*' // Attribute name.
    14561456        . '|'
    1457         .     '\[\[?[^\[\]]+\]\]?' // Shortcode in the name position implies unfiltered_html.
     1457        .     '\[\[?[^\[\]]+\]\]?'        // Shortcode in the name position implies unfiltered_html.
    14581458        . ')'
    14591459        . '(?:'               // Attribute value.
  • trunk/tests/phpunit/tests/kses.php

    r48132 r48139  
    630630                false,
    631631            ),
    632             // using digit in attribute name should work
     632            // Using a digit in attribute name should work.
    633633            array(
    634634                'href="https://example.com/[shortcode attr=\'value\']" data-op3-timer-seconds="0"',
    635635                array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op3-timer-seconds="0"' ),
    636636            ),
    637             // using underscore in attribute name should work
     637            // Using an underscore in attribute name should work.
    638638            array(
    639639                'href="https://example.com/[shortcode attr=\'value\']" data-op_timer-seconds="0"',
    640640                array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op_timer-seconds="0"' ),
    641641            ),
    642             // using period in attribute name should work
     642            // Using a period in attribute name should work.
    643643            array(
    644644                'href="https://example.com/[shortcode attr=\'value\']" data-op.timer-seconds="0"',
    645645                array( 'href="https://example.com/[shortcode attr=\'value\']" ', 'data-op.timer-seconds="0"' ),
    646646            ),
    647             // using digit at a beginning of attribute name should return false
     647            // Using a digit at the beginning of attribute name should return false.
    648648            array(
    649649                'href="https://example.com/[shortcode attr=\'value\']" 3data-op-timer-seconds="0"',
Note: See TracChangeset for help on using the changeset viewer.