WordPress/wp-content/themes
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
..
twentyeleven Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentyfifteen Bundled Theme: Update default themes to use new script function signature. 2023-09-06 21:23:20 +00:00
twentyfourteen Bundled Theme: Update default themes to use new script function signature. 2023-09-06 21:23:20 +00:00
twentynineteen Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:03:21 +00:00
twentyseventeen Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentysixteen Bundled Theme: Update default themes to use new script function signature. 2023-09-06 21:23:20 +00:00
twentyten Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentythirteen Bundled Theme: Update default themes to use new script function signature. 2023-09-06 21:23:20 +00:00
twentytwelve Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentytwenty Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentytwentyone Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
twentytwentythree Bundled Themes: Bump version numbers for WordPress 6.3. 2023-07-26 22:09:22 +00:00
twentytwentytwo Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:03:21 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00