Changeset 56180 for trunk/src/wp-includes/embed.php
- Timestamp:
- 07/09/2023 09:46:24 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/embed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r53912 r56180 511 511 ); 512 512 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 */ 518 520 $output .= wp_get_inline_script_tag( 519 521 file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' )
Note: See TracChangeset
for help on using the changeset viewer.