WordPress/wp-admin/includes
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
..
admin-filters.php
admin.php
ajax-actions.php Editor: Add Nonce Endpoint 2019-09-23 17:47:56 +00:00
bookmark.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-automatic-upgrader-skin.php Code Modernisation: Introduce the spread operator in `wp-admin/includes/class-*-upgrader-skin.php`. 2019-09-15 10:42:54 +00:00
class-bulk-plugin-upgrader-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-bulk-theme-upgrader-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-bulk-upgrader-skin.php Code Modernisation: Introduce the spread operator in `wp-admin/includes/class-*-upgrader-skin.php`. 2019-09-15 10:42:54 +00:00
class-core-upgrader.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-custom-background.php Docs: Fix placement of some duplicate hook references. 2019-09-10 19:23:55 +00:00
class-custom-image-header.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-file-upload-upgrader.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-language-pack-upgrader-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-language-pack-upgrader.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-pclzip.php GENERAL: Remove magic quote functions 2019-09-13 22:21:01 +00:00
class-plugin-installer-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-plugin-upgrader-skin.php Upgrade/Install: Escape the `%` in `width="100%"` in a `printf()` call in `Plugin_Upgrader_Skin::after()`. 2019-09-06 06:26:56 +00:00
class-plugin-upgrader.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-theme-installer-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-theme-upgrader-skin.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-theme-upgrader.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-walker-category-checklist.php Docs: Fix placement of some duplicate hook references. 2019-09-10 19:23:55 +00:00
class-walker-nav-menu-checklist.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-walker-nav-menu-edit.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-ajax-upgrader-skin.php Code Modernisation: Introduce the spread operator in `wp-admin/includes/class-*-upgrader-skin.php`. 2019-09-15 10:42:54 +00:00
class-wp-automatic-updater.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-comments-list-table.php Accessibility: Comments: Replace `@` with `at` in the displayed date format. 2019-09-08 23:53:55 +00:00
class-wp-community-events.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-debug-data.php Build/Test Tools: Introduce automated PHP compatibility checking. 2019-09-25 13:47:58 +00:00
class-wp-filesystem-base.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-filesystem-direct.php Filesystem API: Check correct variable in `WP_Filesystem_Direct::dirlist()` after [45611]. 2019-07-09 15:58:57 +00:00
class-wp-filesystem-ftpext.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-filesystem-ftpsockets.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-filesystem-ssh2.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-importer.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-wp-internal-pointers.php
class-wp-links-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-list-table-compat.php
class-wp-list-table.php Code Modernisation: Replace `call_user_func_array()` in various `__call()` methods with dynamic function calls. 2019-09-15 11:53:56 +00:00
class-wp-media-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-ms-sites-list-table.php Coding Standards: Fix a coding standards issue introduced in [46254]. 2019-09-23 18:35:00 +00:00
class-wp-ms-themes-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-ms-users-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-plugin-install-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-plugins-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-post-comments-list-table.php
class-wp-posts-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-privacy-data-export-requests-list-table.php
class-wp-privacy-data-removal-requests-list-table.php Privacy: Show a success message for personal data erasure. 2019-09-23 19:13:58 +00:00
class-wp-privacy-policy-content.php Docs: Improve consistency in `@since` tags for parameters that were made optional. 2019-09-24 12:54:57 +00:00
class-wp-privacy-requests-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-screen.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-site-health-auto-updates.php Site Health: Move "The folder ... was detected as being under version control" message from failure to warning. 2019-09-23 21:24:56 +00:00
class-wp-site-health.php Build/Test Tools: Introduce automated PHP compatibility checking. 2019-09-25 13:47:58 +00:00
class-wp-site-icon.php
class-wp-terms-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-theme-install-list-table.php Bundled Themes: Make Twenty Twenty the new default theme. 2019-09-23 21:00:58 +00:00
class-wp-themes-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-upgrader-skin.php Code Modernisation: Introduce the spread operator in `wp-admin/includes/class-*-upgrader-skin.php`. 2019-09-15 10:42:54 +00:00
class-wp-upgrader-skins.php
class-wp-upgrader.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-users-list-table.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
comment.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
continents-cities.php
credits.php
dashboard.php Code Modernisation: Introduce the spread operator in `wp-admin/includes/dashboard.php`. 2019-09-15 11:11:56 +00:00
deprecated.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
edit-tag-messages.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
export.php Docs: Add missing description for `$post` global. 2019-08-04 12:28:56 +00:00
file.php Build/Test Tools: Introduce automated PHP compatibility checking. 2019-09-25 13:47:58 +00:00
image-edit.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
image.php Code Modernization: Remove a workaround for `IMAGETYPE_ICO` in `file_is_displayable_image()`. 2019-09-20 22:18:59 +00:00
import.php
list-table.php
media.php Docs: Improve consistency in `@since` tags for parameters that were made optional. 2019-09-24 12:54:57 +00:00
menu.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
meta-boxes.php Accessibility: Media: Replace `@` with `at` in the displayed date format. 2019-09-09 00:07:57 +00:00
misc.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
ms-admin-filters.php
ms-deprecated.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
ms.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
nav-menu.php Accessibility: Menus: Improve the menu items "Select All". 2019-09-23 12:42:58 +00:00
network.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
noop.php Code Modernization: Remove conditional use of PHP `realpath()`. 2019-09-20 20:46:56 +00:00
options.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
plugin-install.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
plugin.php Docs: Add `@since` tag for the new `$position` argument added to `add_submenu_page()` and related functions in [46197]. 2019-09-20 17:06:57 +00:00
post.php Editor: Add missing block data fields for blocks registered server side. 2019-09-11 14:52:56 +00:00
privacy-tools.php Privacy: Introduce `wp_privacy_personal_data_email_to` and `wp_privacy_personal_data_email_subject` filters. 2019-09-23 19:25:57 +00:00
revision.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
schema.php Multisite: Remove the redundant `blog_versions` table. 2019-09-19 22:07:57 +00:00
screen.php Docs: Add missing description for `$current_screen` global. 2019-08-04 02:03:55 +00:00
taxonomy.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
template.php Code Modernisation: Replace `call_user_func_array()` in `wp-admin/includes/template.php` with a dynamic function call. 2019-09-15 11:35:56 +00:00
theme-install.php Coding Standards: Fix the `Squiz.PHP.DisallowMultipleAssignments` violations in `wp-admin`. 2019-07-01 12:52:01 +00:00
theme.php Docs: Docblock corrections and improvements, mostly related to various `pre_*` filters. 2019-09-21 17:41:57 +00:00
translation-install.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
update-core.php Bundled Themes: Make Twenty Twenty the new default theme. 2019-09-23 21:00:58 +00:00
update.php PHP 7.4: Fix another instance of array access on a datatype that cannot be accessed as an array. 2019-09-19 14:30:56 +00:00
upgrade.php Build/Test Tools: Introduce automated PHP compatibility checking. 2019-09-25 13:47:58 +00:00
user.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
widgets.php Code Modernisation: Replace `call_user_func_array()` in `wp-admin/includes/widgets.php` and associated unit tests with a direct function call. 2019-09-15 11:41:55 +00:00