WordPress/wp-content/themes/twentytwentyone/inc
Sergey Biryukov b80ce60f70 Coding Standards: Use pre-increment/decrement for stand-alone statements.
Note: This is enforced by WPCS 3.0.0:

1. There should be no space between an increment/decrement operator and the variable it applies to.
2. Pre-increment/decrement should be favoured over post-increment/decrement for stand-alone statements. “Pre” will in/decrement and then return, “post” will return and then in/decrement. Using the “pre” version is slightly more performant and can prevent future bugs when code gets moved around.

References:
* [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#increment-decrement-operators WordPress PHP Coding Standards: Increment/decrement operators]
* [https://github.com/WordPress/WordPress-Coding-Standards/pull/2130 WPCS: PR #2130 Core: add sniffs to check formatting of increment/decrement operators]

Props jrf.
See #59161, #58831.
Built from https://develop.svn.wordpress.org/trunk@56549


git-svn-id: http://core.svn.wordpress.org/trunk@56061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-09-09 09:28:26 +00:00
..
back-compat.php Twenty Twenty-One: Correct `@since` inline documentation tags. 2020-12-17 14:57:07 +00:00
block-patterns.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:03:21 +00:00
block-styles.php Twenty Twenty-One: Correct `@since` inline documentation tags. 2020-12-17 14:57:07 +00:00
custom-css.php Code Modernization: Rename parameters that use reserved keywords in `wp-includes/class.wp-styles.php`. 2022-04-26 14:59:08 +00:00
menu-functions.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
starter-content.php Help/About: Use a consistent capitalization for "Support forums" links across WP Admin. 2023-02-28 12:48:23 +00:00
template-functions.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
template-tags.php Twenty Twenty-One: Add a missing HTML comment to indicate the end of `.post-thumbnail` section. 2022-05-15 22:34:08 +00:00