mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 19:18:57 +01:00
b80ce60f70
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 |
||
---|---|---|
.. | ||
class-wp-nav-menu-widget.php | ||
class-wp-widget-archives.php | ||
class-wp-widget-block.php | ||
class-wp-widget-calendar.php | ||
class-wp-widget-categories.php | ||
class-wp-widget-custom-html.php | ||
class-wp-widget-links.php | ||
class-wp-widget-media-audio.php | ||
class-wp-widget-media-gallery.php | ||
class-wp-widget-media-image.php | ||
class-wp-widget-media-video.php | ||
class-wp-widget-media.php | ||
class-wp-widget-meta.php | ||
class-wp-widget-pages.php | ||
class-wp-widget-recent-comments.php | ||
class-wp-widget-recent-posts.php | ||
class-wp-widget-rss.php | ||
class-wp-widget-search.php | ||
class-wp-widget-tag-cloud.php | ||
class-wp-widget-text.php |