mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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], [56180], [56191], [56192], [56193]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56194 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -263,8 +263,10 @@ function get_shortcode_regex( $tagnames = null ) {
|
||||
}
|
||||
$tagregexp = implode( '|', array_map( 'preg_quote', $tagnames ) );
|
||||
|
||||
// WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag().
|
||||
// Also, see shortcode_unautop() and shortcode.js.
|
||||
/*
|
||||
* WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcode_tag().
|
||||
* Also, see shortcode_unautop() and shortcode.js.
|
||||
*/
|
||||
|
||||
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
|
||||
return '\\[' // Opening bracket.
|
||||
@@ -466,8 +468,10 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) {
|
||||
*/
|
||||
$attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr );
|
||||
} else {
|
||||
// $attr like 'name = "[shortcode]"' or "name = '[shortcode]'".
|
||||
// We do not know if $content was unfiltered. Assume KSES ran before shortcodes.
|
||||
/*
|
||||
* $attr like 'name = "[shortcode]"' or "name = '[shortcode]'".
|
||||
* We do not know if $content was unfiltered. Assume KSES ran before shortcodes.
|
||||
*/
|
||||
$count = 0;
|
||||
$new_attr = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $attr, -1, $count );
|
||||
if ( $count > 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user