Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:36:06 PM (20 months ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175], [56176], [56177], [56178], [56179], [56180].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r56046 r56191  
    792792        $value = $split[1];
    793793
    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         */
    796798        if ( '' === $value ) {
    797799            $quote = '';
     
    14431445
    14441446    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         */
    14471451        $attrarr[ $attrname ] = array(
    14481452            'name'  => $attrname,
     
    15471551    // phpcs:enable
    15481552
    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     */
    15511557
    15521558    $validation = "%^($regex)+$%";
Note: See TracChangeset for help on using the changeset viewer.