Coding Standards: Adjust coding standards to always omit parentheses for `include`/`require` statements.
These are language constructs, not function calls, so the parentheses are unnecessary. This updates the PHPCS configuration file the enforce the sniff until it is moved from the `WordPress-Extra` ruleset to the `WordPress-Core` ruleset upstream. Follow-up to [47198]. Props desrosj, jrf, GaryJ. Fixes #49376. Built from https://develop.svn.wordpress.org/trunk@47207 git-svn-id: http://core.svn.wordpress.org/trunk@47007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f1fd617f5
commit
b2a1146380
|
@ -258,8 +258,7 @@ function get_shortcode_regex( $tagnames = null ) {
|
||||||
// Also, see shortcode_unautop() and shortcode.js.
|
// Also, see shortcode_unautop() and shortcode.js.
|
||||||
|
|
||||||
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
|
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
|
||||||
return
|
return '\\[' // Opening bracket.
|
||||||
'\\[' // Opening bracket.
|
|
||||||
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]].
|
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]].
|
||||||
. "($tagregexp)" // 2: Shortcode name.
|
. "($tagregexp)" // 2: Shortcode name.
|
||||||
. '(?![\\w-])' // Not followed by word character or hyphen.
|
. '(?![\\w-])' // Not followed by word character or hyphen.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47206';
|
$wp_version = '5.4-alpha-47207';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue