mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -258,8 +258,7 @@ function get_shortcode_regex( $tagnames = null ) {
|
||||
// Also, see shortcode_unautop() and shortcode.js.
|
||||
|
||||
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
|
||||
return
|
||||
'\\[' // Opening bracket.
|
||||
return '\\[' // Opening bracket.
|
||||
. '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]].
|
||||
. "($tagregexp)" // 2: Shortcode name.
|
||||
. '(?![\\w-])' // Not followed by word character or hyphen.
|
||||
|
||||
Reference in New Issue
Block a user