mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
114a672cfa
This is an important release which makes significant changes to improve the accuracy, performance, stability and maintainability of all sniffs, as well as making WordPressCS much better at handling modern PHP. WordPressCS 3.0.0 contains breaking changes, both for people using ignore annotations, people maintaining custom rulesets, as well as for sniff developers who maintain a custom PHPCS standard based on WordPressCS. If you are an end-user or maintain a custom WordPressCS based ruleset, please start by reading the [https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-ruleset-maintainers Upgrade Guide to WordPressCS 3.0.0 for ruleset maintainers] which lists the most important changes and contains a step by step guide for upgrading. If you are a maintainer of an external standard based on WordPressCS and any of your custom sniffs are based on or extend WordPressCS sniffs, please read the [https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-Developers-of-external-standards Upgrade Guide to WordPressCS 3.0.0 for Developers]. In all cases, please read the complete changelog carefully before you upgrade. This commit: * Updates the Composer dependencies to use the new version, including updating the underlying PHP_CodeSniffer dependency to the new minimum supported version for WPCS.[[BR]] Note: the Composer PHPCS installer plugin is no longer explicitly required as it is now a dependency of WPCS, so the dependency is inherited automatically. * Updates the ruleset for WPCS 3.0.0. This includes: * Raising the memory limit to be on the safe side as WPCS 3.0.0 contains a lot more sniffs. * Removing explicit inclusions of extra rules, which have now been added to the `WordPress-Core` ruleset.. * Updating property names for select sniffs. * Updating one exclusion — the `WordPress.CodeAnalysis.AssignmentInCondition` sniff has been (partially) replaced by the `Generic.CodeAnalysis.AssignmentInCondition` sniff. * Adding one new exclusion. * Downgrades one new error to a warning.[[BR]] The `Generic.Files.OneObjectStructurePerFile` sniff enforces that there is only one OO structure declaration per file. At this time, this sniff would yield 29 errors. By downgrading the sniff to a ''warning'', the build can pass and the issues can be fixed in due time. For now, the test directory will be excluded until the issues are fixed (as the test directory CS run does not allow for warnings). * Updates ignore annotations for WPCS 3.0.0. Reference: [https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0 WPCS 3.0.0 release notes]. Follow-up to [43571], [44574], [45600], [47927]. Props jrf, jorbin, desrosj. See #59161. Built from https://develop.svn.wordpress.org/trunk@56695 git-svn-id: http://core.svn.wordpress.org/trunk@56207 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
css | ||
images | ||
includes | ||
js | ||
maint | ||
network | ||
user | ||
about.php | ||
admin-ajax.php | ||
admin-footer.php | ||
admin-functions.php | ||
admin-header.php | ||
admin-post.php | ||
admin.php | ||
async-upload.php | ||
authorize-application.php | ||
comment.php | ||
contribute.php | ||
credits.php | ||
custom-background.php | ||
custom-header.php | ||
customize.php | ||
edit-comments.php | ||
edit-form-advanced.php | ||
edit-form-blocks.php | ||
edit-form-comment.php | ||
edit-link-form.php | ||
edit-tag-form.php | ||
edit-tags.php | ||
edit.php | ||
erase-personal-data.php | ||
export-personal-data.php | ||
export.php | ||
freedoms.php | ||
import.php | ||
index.php | ||
install-helper.php | ||
install.php | ||
link-add.php | ||
link-manager.php | ||
link-parse-opml.php | ||
link.php | ||
load-scripts.php | ||
load-styles.php | ||
media-new.php | ||
media-upload.php | ||
media.php | ||
menu-header.php | ||
menu.php | ||
moderation.php | ||
ms-admin.php | ||
ms-delete-site.php | ||
ms-edit.php | ||
ms-options.php | ||
ms-sites.php | ||
ms-themes.php | ||
ms-upgrade-network.php | ||
ms-users.php | ||
my-sites.php | ||
nav-menus.php | ||
network.php | ||
options-discussion.php | ||
options-general.php | ||
options-head.php | ||
options-media.php | ||
options-permalink.php | ||
options-privacy.php | ||
options-reading.php | ||
options-writing.php | ||
options.php | ||
plugin-editor.php | ||
plugin-install.php | ||
plugins.php | ||
post-new.php | ||
post.php | ||
press-this.php | ||
privacy-policy-guide.php | ||
privacy.php | ||
profile.php | ||
revision.php | ||
setup-config.php | ||
site-editor.php | ||
site-health-info.php | ||
site-health.php | ||
term.php | ||
theme-editor.php | ||
theme-install.php | ||
themes.php | ||
tools.php | ||
update-core.php | ||
update.php | ||
upgrade-functions.php | ||
upgrade.php | ||
upload.php | ||
user-edit.php | ||
user-new.php | ||
users.php | ||
widgets-form-blocks.php | ||
widgets-form.php | ||
widgets.php |