Changeset 56194 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 07/10/2023 11:09:16 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r55990 r56194 264 264 $tagregexp = implode( '|', array_map( 'preg_quote', $tagnames ) ); 265 265 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 */ 268 270 269 271 // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation … … 467 469 $attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr ); 468 470 } 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 */ 471 475 $count = 0; 472 476 $new_attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr, -1, $count );
Note: See TracChangeset
for help on using the changeset viewer.