Make WordPress Core


Ignore:
Timestamp:
07/10/2023 11:09:16 PM (15 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], [56191], [56192], [56193].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r55990 r56194  
    264264    $tagregexp = implode( '|', array_map( 'preg_quote', $tagnames ) );
    265265
    266     // WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag().
    267     // Also, see shortcode_unautop() and shortcode.js.
     266    /*
     267     * WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag().
     268     * Also, see shortcode_unautop() and shortcode.js.
     269     */
    268270
    269271    // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
     
    467469                $attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr );
    468470            } else {
    469                 // $attr like 'name = "[shortcode]"' or "name = '[shortcode]'".
    470                 // We do not know if $content was unfiltered. Assume KSES ran before shortcodes.
     471                /*
     472                 * $attr like 'name = "[shortcode]"' or "name = '[shortcode]'".
     473                 * We do not know if $content was unfiltered. Assume KSES ran before shortcodes.
     474                 */
    471475                $count    = 0;
    472476                $new_attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr, -1, $count );
Note: See TracChangeset for help on using the changeset viewer.