wordpress-develop/tests/phpunit/data
Peter Wilson 2ac96bcd07 Upload: Fallback to PclZip to validate ZIP file uploads.
`ZipArchive` can fail to validate ZIP files correctly and report valid files as invalid. This introduces a fallback to `PclZip` to check validity of files if `ZipArchive` fails them.

This introduces the new function `wp_zip_file_is_valid()` to validate archives.

Follow up to [57388].

Props audunmb, azaozz, britner, cdevroe, colorful-tones, costdev, courane01, endymion00, feastdesignco, halounsbury, jeffpaul, johnbillion, jorbin, jsandtro, karinclimber, kevincoleman, koesper, maartenbelmans, mathewemoore, melcarthus, mujuonly, nerdpressteam, olegfuture, otto42, peterwilsoncc, room34, sayful, schutzsmith, stephencronin, svitlana41319, swissspidy, tnolte, tobiasbg, vikram6, welaunchio.
Fixes #60398.


git-svn-id: https://develop.svn.wordpress.org/trunk@57537 602fd350-edb4-49c9-b593-d223f7449a82
2024-02-05 22:21:35 +00:00
..
blocks Editor: Add viewStyle property to block.json for frontend-only block styles 2024-01-31 09:09:22 +00:00
export Ensure svn:eol-style is consistently set for all files (part 2). 2019-10-25 19:27:49 +00:00
feed Help/About: Use the new /documentation/ URLs for HelpHub links in WordPress Admin. 2023-02-23 10:36:33 +00:00
filesystem Upload: Fallback to PclZip to validate ZIP file uploads. 2024-02-05 22:21:35 +00:00
formatting Themes: Make sure get_file_data() recognizes headers prefixed by <?php tag. 2021-06-18 14:02:44 +00:00
functions Tests: Some test improvements for clean_dirsize_cache() tests: 2021-10-26 02:02:50 +00:00
images Media: fix AVIF tests. 2024-02-02 18:48:03 +00:00
l10n I18N: Fix plural forms parsing in WP_Translation_File. 2024-02-01 20:57:03 +00:00
languages I18N: Support loading .l10n.php translation files on their own. 2024-02-01 19:03:55 +00:00
plugins Build/Test Tools: Mock plugin API response in WP_REST_Plugins_Controller_Test. 2024-02-04 22:02:02 +00:00
pomo I18N: Introduce a more performant localization library. 2024-01-23 13:32:34 +00:00
templates Themes: Inject theme attribute during serialization. 2023-09-14 08:50:43 +00:00
theme-file-child Themes: Improve child theme file inheritance by introducing functions for locating and fetching the URL or path to files within child and parent themes. 2016-09-08 22:53:57 +00:00
theme-file-parent Themes: Improve child theme file inheritance by introducing functions for locating and fetching the URL or path to files within child and parent themes. 2016-09-08 22:53:57 +00:00
themedir1 General: Add $schema property to block and theme JSON files. 2024-01-23 13:05:08 +00:00
themedir2 Themes: Remove memoization from stylesheet and theme directories. 2023-11-20 22:27:17 +00:00
uploads Upload: Correct duplicate MIME type for .xlsx files generated by Google Docs. 2023-09-03 12:49:51 +00:00
widgets Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:28:27 +00:00
WPHTTP-testcase-redirection-script.php HTTP API: Fix request header inconsistencies. 2023-02-03 13:33:18 +00:00