WordPress/wp-admin
desrosj 894e133d0c Build/Test Tools: Introduce automated PHP compatibility checking.
This change introduces a new Composer script, `compat` that will scan the codebase for (detectable) potential PHP compatibility issues using the `PHP_CodeSniffer` and a custom ruleset based off of the `PHPCompayibilityWP` ruleset (`phpcompat.xml.dist`).

The command will be run as a separate job within each Travis build. While many compatibility issues and false positives have already been corrected in this commit and other Trac tickets, there are still some remaining. For that reason, the job is allowed to fail while the remainder of the potential compatibility issues are investigated and addressed. After those are resolved, the job should be set as required to pass to help prevent new compatibility issues from being introduced.

Props desrosj, jrf, all PHPCompatibilityWP and PHPCompatibility contributors.
Fixes #46152.
Built from https://develop.svn.wordpress.org/trunk@46290


git-svn-id: http://core.svn.wordpress.org/trunk@46102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-25 13:47:58 +00:00
..
css Privacy: Show a success message for personal data erasure. 2019-09-23 19:13:58 +00:00
images Build: Minify images 2019-02-25 15:21:52 +00:00
includes Build/Test Tools: Introduce automated PHP compatibility checking. 2019-09-25 13:47:58 +00:00
js Site Health: Introduce site_status_test_result filter for the output of a finished Site Health test. 2019-09-23 20:04:58 +00:00
maint I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
network Multisite/Sites: Add links to filter websites by status. 2019-09-23 17:35:59 +00:00
user Code is Poetry. 2017-11-30 23:11:00 +00:00
about.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
admin-ajax.php Editor: Add Nonce Endpoint 2019-09-23 17:47:56 +00:00
admin-footer.php I18N: Split translatable strings located on the same line preceded with a translator comment, where the first string needs that comment, but the second does not. 2019-09-02 00:43:55 +00:00
admin-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-header.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
admin-post.php Admin: Use is_user_logged_in() instead of wp_validate_auth_cookie() in admin-post.php. 2019-01-16 05:41:50 +00:00
admin.php I18N: Improve translator comments. 2019-09-01 17:13:59 +00:00
async-upload.php Escape the output in wp_ajax_upload_attachment(). 2019-09-04 16:09:56 +00:00
comment.php Accessibility: Comments: Replace @ with at in the displayed date format. 2019-09-08 23:53:55 +00:00
credits.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
custom-background.php Coding Standards: Move wp-admin/custom-background.php to wp-admin/includes/class-custom-background.php 2019-07-19 04:02:55 +00:00
custom-header.php Coding Standards: Move wp-admin/custom-header.php to wp-admin/includes/class-custom-image-header.php 2019-07-17 06:17:56 +00:00
customize.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
edit-comments.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
edit-form-advanced.php Accessibility: Posts, Post Types: Replace @ with at in the displayed date format. 2019-09-08 23:24:56 +00:00
edit-form-blocks.php Block Editor: Add preloading of autosaves. 2019-09-14 16:47:54 +00:00
edit-form-comment.php Accessibility: Comments: Replace @ with at in the displayed date format. 2019-09-08 23:53:55 +00:00
edit-link-form.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
edit-tag-form.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
edit-tags.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
edit.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
erase-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export.php Docs: Add missing description for $wp_locale global. 2019-08-04 01:46:55 +00:00
freedoms.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
import.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
index.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
install-helper.php Code is Poetry. 2017-11-30 23:11:00 +00:00
install.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
link-add.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link-manager.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
link-parse-opml.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
link.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin. 2019-07-01 12:52:01 +00:00
load-scripts.php Script Loader: Send a 400 Bad Request status code in load-scripts.php and load-styles.php if the required load[] parameter is not set. 2019-08-03 22:17:57 +00:00
load-styles.php Script Loader: Send a 400 Bad Request status code in load-scripts.php and load-styles.php if the required load[] parameter is not set. 2019-08-03 22:17:57 +00:00
media-new.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
media-upload.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
media.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
menu-header.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin. 2019-07-01 12:52:01 +00:00
menu.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
moderation.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-admin.php
ms-delete-site.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
ms-edit.php
ms-options.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-sites.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-themes.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-upgrade-network.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-users.php Code is Poetry. 2017-11-30 23:11:00 +00:00
my-sites.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
nav-menus.php Bundled Themes: Make Twenty Twenty the new default theme. 2019-09-23 21:00:58 +00:00
network.php I18N: Improve translator comments. 2019-09-01 17:13:59 +00:00
options-discussion.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options-general.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options-head.php Administration: Replace legacy updated message type in add_settings_error() calls with success. 2019-08-16 00:39:55 +00:00
options-media.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
options-permalink.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options-privacy.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options-reading.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options-writing.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
options.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
plugin-editor.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
plugin-install.php I18N: Improve translator comments. 2019-09-01 17:13:59 +00:00
plugins.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
post-new.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
post.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
press-this.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
privacy-policy-guide.php Coding Standards: Fix all WordPress.WhiteSpace.PrecisionAlignment issues. 2019-07-05 05:21:56 +00:00
privacy.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
profile.php Code is Poetry. 2017-11-30 23:11:00 +00:00
revision.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
setup-config.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
site-health-info.php Site Health: Modify the grading indicator to remove percentage score in favor of a "Good" or "Should be improved" status. 2019-09-14 14:29:56 +00:00
site-health.php Site Health: Use sentence casing consistently in header tags. 2019-09-20 17:26:57 +00:00
term.php Taxonomy: Redirect to the correct URL after deleting a taxonomy term attached to a post type other than Post. 2019-09-23 19:10:58 +00:00
theme-editor.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
theme-install.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
themes.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
tools.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
update-core.php Docs: Add missing descriptions for functions in wp-admin/update-core.php. 2019-09-17 20:43:56 +00:00
update.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
upgrade-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
upgrade.php Text Changes: Correct "up-to-date" vs. "up to date" usage in a database update string and inline comments. 2019-09-12 13:06:57 +00:00
upload.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
user-edit.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
user-new.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
users.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
widgets.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00