WordPress/wp-admin/includes
Sergey Biryukov 6ae20f561e Filesystem API: Make sure to only call fread() on non-empty files in the PclZip library.
This avoids a fatal error on PHP 8 caused by passing a zero value to `fread()` as the `$length` argument, which must be greater than zero.

Props yakimun, fierevere, jrf, DavidAnderson, SergeyBiryukov.
Merges [50355] to the 5.6 branch.
Fixes #52018.
Built from https://develop.svn.wordpress.org/branches/5.6@50356


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-16 18:48:01 +00:00
..
admin-filters.php
admin.php
ajax-actions.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
bookmark.php Docs: Document the $linkdata parameter of wp_insert_link() using hash notation. 2020-11-03 03:52:10 +00:00
class-automatic-upgrader-skin.php Docs: Add missing descriptions for Automatic_Upgrader_Skin methods. 2020-11-14 16:23:10 +00:00
class-bulk-plugin-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-bulk-theme-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-bulk-upgrader-skin.php
class-core-upgrader.php Upgrade/Install: Better UI for auto-update settings on update screen. 2020-11-12 22:37:10 +00:00
class-custom-background.php Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page. 2020-10-29 18:09:13 +00:00
class-custom-image-header.php Coding standards: Modify escaping functions to avoid potential false positives. 2020-10-29 18:03:11 +00:00
class-file-upload-upgrader.php
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php
class-language-pack-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-language-pack-upgrader.php Docs: Add missing @return tag to Language_Pack_Upgrader::check_package(). 2020-10-05 13:44:11 +00:00
class-pclzip.php Filesystem API: Make sure to only call fread() on non-empty files in the PclZip library. 2021-02-16 18:48:01 +00:00
class-plugin-installer-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-plugin-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-plugin-upgrader.php Docs: Add missing @return tag to Language_Pack_Upgrader::check_package(). 2020-10-05 13:44:11 +00:00
class-theme-installer-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-theme-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-theme-upgrader.php Docs: Add missing @return tag to Language_Pack_Upgrader::check_package(). 2020-10-05 13:44:11 +00:00
class-walker-category-checklist.php Docs: Further corrections and promotions for docblocks relating to object types. 2020-10-18 20:53:08 +00:00
class-walker-nav-menu-checklist.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-walker-nav-menu-edit.php
class-wp-ajax-upgrader-skin.php Docs: Add missing descriptions for Automatic_Upgrader_Skin methods. 2020-11-14 16:23:10 +00:00
class-wp-application-passwords-list-table.php App Passwords: Ensure the Created At and Last Used dates are properly translated. 2020-12-03 21:09:01 +00:00
class-wp-automatic-updater.php Coding Standards: Fix WPCS issues in [49242]. 2020-10-20 18:31:07 +00:00
class-wp-comments-list-table.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
class-wp-community-events.php Docs: Add a @deprecated note to WP_Community_Events::format_event_data_time(). 2020-10-19 13:22:07 +00:00
class-wp-debug-data.php Upgrade/Install: Prevent removal of additional data from plugin update info. 2020-11-02 19:13:07 +00:00
class-wp-filesystem-base.php Docs: Correct references to WP_Filesystem_Base methods in various DocBlocks. 2020-08-21 00:43:05 +00:00
class-wp-filesystem-direct.php
class-wp-filesystem-ftpext.php Filesystem API: Use correct variable when closing the file handle in WP_Filesystem_FTPext::get_contents(). 2020-08-15 20:56:02 +00:00
class-wp-filesystem-ftpsockets.php
class-wp-filesystem-ssh2.php
class-wp-importer.php Docs: Improve the docs for the globals that are used in the actions and filters API. 2020-10-18 19:19:06 +00:00
class-wp-internal-pointers.php
class-wp-links-list-table.php
class-wp-list-table-compat.php Docs: Add missing descriptions for _WP_List_Table_Compat methods. 2020-11-14 16:54:08 +00:00
class-wp-list-table.php Docs: Add missing descriptions for _WP_List_Table_Compat methods. 2020-11-14 16:54:08 +00:00
class-wp-media-list-table.php Media: Revert [49567]. 2020-12-01 16:35:04 +00:00
class-wp-ms-sites-list-table.php Docs: Further corrections and promotions for docblocks relating to object types. 2020-10-18 20:53:08 +00:00
class-wp-ms-themes-list-table.php Administration: Make sure auto-update counts properly update when bulk deleting plugins or themes. 2020-11-12 20:42:10 +00:00
class-wp-ms-users-list-table.php Docs: Fix and upgrade various object docblock notations. 2020-10-17 16:05:09 +00:00
class-wp-plugin-install-list-table.php Coding Standards: Use strict comparison in wp-admin/includes/class-wp-plugin-install-list-table.php. 2020-09-11 01:05:08 +00:00
class-wp-plugins-list-table.php Plugins: Make sure the HTML ID attributes for plugin checkboxes are unique. 2020-11-17 16:48:09 +00:00
class-wp-post-comments-list-table.php
class-wp-posts-list-table.php Quick/Bulk Edit: Introduce quick_edit_dropdown_authors_args filter. 2020-10-20 16:40:05 +00:00
class-wp-privacy-data-export-requests-list-table.php Coding Standards: Fix WPCS issues in [49258]. 2020-10-20 21:20:07 +00:00
class-wp-privacy-data-removal-requests-list-table.php Coding Standards: Fix WPCS issues in [49258]. 2020-10-20 21:20:07 +00:00
class-wp-privacy-policy-content.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-wp-privacy-requests-table.php Privacy: Show failures before successes for all bulk actions. 2020-10-27 18:19:06 +00:00
class-wp-screen.php Coding Standards: Use self when appropriate. 2020-10-18 17:18:07 +00:00
class-wp-site-health-auto-updates.php Coding Standards: Simplify a long condition in WP_Site_Health_Auto_Updates::test_wp_version_check_attached() for better readability. 2021-01-28 10:38:00 +00:00
class-wp-site-health.php Site Health: Update php update strings to not overpromise performance. 2021-01-28 00:18:56 +00:00
class-wp-site-icon.php
class-wp-terms-list-table.php Taxonomy: Allow for wp_count_terms( $args ) signature, making passing a taxonomy optional. 2020-08-21 22:32:06 +00:00
class-wp-theme-install-list-table.php Bundled Themes: Make Twenty Twenty-One the default theme. 2020-10-20 02:04:07 +00:00
class-wp-themes-list-table.php
class-wp-upgrader-skin.php Docs: Fix the types for some properties and parameters that use the generic object type. 2020-10-10 19:14:04 +00:00
class-wp-upgrader-skins.php
class-wp-upgrader.php Docs: Correct references to WP_Filesystem_Base methods in various DocBlocks. 2020-08-21 00:43:05 +00:00
class-wp-users-list-table.php Administration: Allow WP_List_Table::get_bulk_items() to receive a nested array in order to output optgroups. 2020-10-18 16:22:10 +00:00
comment.php Docs: Docblock corrections relating to WP_Post objects. 2020-11-09 15:15:08 +00:00
continents-cities.php
credits.php
dashboard.php Site Health: Update the language around how PHP should be updated. 2021-01-28 17:24:59 +00:00
deprecated.php Docs: Add missing descriptions for _WP_List_Table_Compat methods. 2020-11-14 16:54:08 +00:00
edit-tag-messages.php
export.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
file.php Multisite: More consistency for clean_dirsize_cache(). 2020-11-16 22:31:06 +00:00
image-edit.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
image.php Media: Standardise the description for image size parameters. 2020-09-20 16:23:07 +00:00
import.php
list-table.php Docs: Add missing descriptions for _WP_List_Table_Compat methods. 2020-11-14 16:54:08 +00:00
media.php Media: Use consistent method for instantiating an attachment author object in Media Library. 2021-01-21 12:21:58 +00:00
menu.php
meta-boxes.php Docs: Fix and upgrade various object docblock notations. 2020-10-17 16:05:09 +00:00
misc.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
ms-admin-filters.php
ms-deprecated.php
ms.php Coding standards: Modify escaping functions to avoid potential false positives. 2020-10-29 18:03:11 +00:00
nav-menu.php Administration: Better targeting for required form field highlighting. 2020-10-23 15:05:09 +00:00
network.php App Passwords: Include authorization rewrite rule in default multisite .htaccess 2020-11-15 17:46:06 +00:00
noop.php
options.php
plugin-install.php Docs: Miscellaneous docblock fixes. 2020-10-17 14:54:05 +00:00
plugin.php Administration: Restore alternative admin menu position for menu items with the same position value as an existing menu item. 2020-10-13 19:59:08 +00:00
post.php REST API: Pass the previous state of the post as a parameter to the wp_after_insert_post hook. 2020-12-01 20:57:05 +00:00
privacy-tools.php Privacy: Add newlines to the index.php file in wp-personal-data-exports directory, for consistency with other similar files. 2021-01-28 13:00:59 +00:00
revision.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
schema.php Upgrade/Install: Enable all core autoupdates for new installs. 2020-11-12 20:22:09 +00:00
screen.php
taxonomy.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
template.php Coding standards: Modify escaping functions to avoid potential false positives. 2020-10-29 18:03:11 +00:00
theme-install.php
theme.php Upgrade/Install: Don't show theme update prompts on subsites. 2020-10-20 19:14:09 +00:00
translation-install.php
update-core.php Update $_old_files for 5.6. 2020-12-08 21:52:05 +00:00
update.php Upgrade/Install: Check $wp_version global for displaying "You are using a development version" message in the admin footer. 2020-12-03 20:23:01 +00:00
upgrade.php App Passwords: Store the "in use" option in the main network options. 2020-12-07 20:01:06 +00:00
user.php App Passwords: Support an app_id to uniquely identify instances of an app. 2020-10-22 15:06:09 +00:00
widgets.php Accessibility: Widgets: Add a "Cancel" link when editing a widget in accessibility mode. 2020-10-09 15:53:08 +00:00