Make WordPress Core


Ignore:
Timestamp:
07/09/2023 09:46:24 PM (3 years 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].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r53912 r56180  
    511511    );
    512512
    513     // Note that the script must be placed after the <blockquote> and <iframe> due to a regexp parsing issue in
    514     // `wp_filter_oembed_result()`. Because of the regex pattern starts with `|(<blockquote>.*?</blockquote>)?.*|`
    515     // wherein the <blockquote> is marked as being optional, if it is not at the beginning of the string then the group
    516     // will fail to match and everything will be matched by `.*` and not included in the group. This regex issue goes
    517     // back to WordPress 4.4, so in order to not break older installs this script must come at the end.
     513    /*
     514     * Note that the script must be placed after the <blockquote> and <iframe> due to a regexp parsing issue in
     515     * `wp_filter_oembed_result()`. Because of the regex pattern starts with `|(<blockquote>.*?</blockquote>)?.*|`
     516     * wherein the <blockquote> is marked as being optional, if it is not at the beginning of the string then the group
     517     * will fail to match and everything will be matched by `.*` and not included in the group. This regex issue goes
     518     * back to WordPress 4.4, so in order to not break older installs this script must come at the end.
     519     */
    518520    $output .= wp_get_inline_script_tag(
    519521        file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' )
Note: See TracChangeset for help on using the changeset viewer.