mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -510,11 +510,13 @@ function get_post_embed_html( $width, $height, $post = null ) {
|
||||
esc_attr( $secret )
|
||||
);
|
||||
|
||||
// Note that the script must be placed after the <blockquote> and <iframe> due to a regexp parsing issue in
|
||||
// `wp_filter_oembed_result()`. Because of the regex pattern starts with `|(<blockquote>.*?</blockquote>)?.*|`
|
||||
// wherein the <blockquote> is marked as being optional, if it is not at the beginning of the string then the group
|
||||
// will fail to match and everything will be matched by `.*` and not included in the group. This regex issue goes
|
||||
// back to WordPress 4.4, so in order to not break older installs this script must come at the end.
|
||||
/*
|
||||
* Note that the script must be placed after the <blockquote> and <iframe> due to a regexp parsing issue in
|
||||
* `wp_filter_oembed_result()`. Because of the regex pattern starts with `|(<blockquote>.*?</blockquote>)?.*|`
|
||||
* wherein the <blockquote> is marked as being optional, if it is not at the beginning of the string then the group
|
||||
* will fail to match and everything will be matched by `.*` and not included in the group. This regex issue goes
|
||||
* back to WordPress 4.4, so in order to not break older installs this script must come at the end.
|
||||
*/
|
||||
$output .= wp_get_inline_script_tag(
|
||||
file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user