WordPress/wp-admin/includes
desrosj 3cf6276ed0 Code Modernization: Remove JSON extension workarounds for PHP < 5.6.
The PHP native JSON extension has been bundled and compiled with PHP by default since version 5.2.0. Because the minimum version of PHP required by WordPress is now 5.6.20 (see #46594 and [45058]), JSON extension related polyfills and backwards compatibility code can now be removed.

This change removes code that supported JSON related functionality on older versions of PHP. This includes (but is not limited to) checks that `json_last_error()` exists, checking and setting the `JSON_UNESCAPED_SLASHES` and `JSON_PRETTY_PRINT` constants if not previously defined, and deprecating the `_wp_json_prepare_data()` function (which was 100% workaround code).

Follow up of [46205].

See #47699.
Props jrf, Clorith, pento.
Built from https://develop.svn.wordpress.org/trunk@46206


git-svn-id: http://core.svn.wordpress.org/trunk@46018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-20 20:08:57 +00:00
..
admin-filters.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
admin.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
ajax-actions.php Uploads: add helper functions for setting, getting, and deleting the temp upload reference used to the attachment_id when retrying to make image sub-sizes. 2019-09-19 01:26:55 +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 Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
class-ftp-sockets.php Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +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 Privacy: Remove privacy feature related admin pointers. 2019-03-04 20:47:50 +00:00
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 Code is Poetry. 2017-11-30 23:11:00 +00:00
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 Network Admin: Allow Sites to have filterable States in List Table rows. 2019-09-16 23:34:55 +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 Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
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 Privacy: Remove inline CSS within personal data request list tables. 2019-06-04 23:40:55 +00:00
class-wp-privacy-data-removal-requests-list-table.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
class-wp-privacy-policy-content.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-site-health.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-site-icon.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +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 Load: Re-add class-wp-upgrader-skins.php. 2016-12-03 03:40:41 +00:00
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 I18N: Update list of continents and cities for the timezone selection. 2018-07-18 11:21:25 +00:00
credits.php Code is Poetry. 2017-11-30 23:11:00 +00:00
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 Uploads: add helper functions for setting, getting, and deleting the temp upload reference used to the attachment_id when retrying to make image sub-sizes. 2019-09-19 01:26:55 +00:00
image-edit.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
image.php Media/Upload: rotate images on upload according to EXIF Orientation. 2019-09-20 18:21:57 +00:00
import.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
list-table.php Privacy: Remove reinstated wp-admin/options-privacy.php from $_old_files. 2019-05-27 02:40:53 +00:00
media.php Uploads: add helper functions for setting, getting, and deleting the temp upload reference used to the attachment_id when retrying to make image sub-sizes. 2019-09-19 01:26:55 +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 Code is Poetry. 2017-11-30 23:11:00 +00:00
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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +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 JSON extension workarounds for PHP < 5.6. 2019-09-20 20:08:57 +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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +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 I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
translation-install.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
update-core.php Accessibility: Replace wp-a11y.js with @wordpress/a11y package 2019-09-18 17:41:55 +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 Multisite: Remove the redundant blog_versions table. 2019-09-19 22:07:57 +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