wordpress-develop/tests/phpunit/data
Pascal Birchler dfd9b1afd2 I18N: Prevent incorrect language dropdown entries when there are .l10n.php files.
In [57516], the just-in-time translation loading logic was enhanced to support cases where only `.l10n.php` translation exist but no `.mo` or `.po` files. This caused a slight regression in `get_available_languages()`, which uses the list of files to populate the language dropdown list on the settings page.

To address this, the new file extension is now properly stripped off, and the resulting file list is de-duplicated. New test files are added to allow the existing tests to cover this new scenario.

See #59656.
Fixes #60553.

git-svn-id: https://develop.svn.wordpress.org/trunk@57639 602fd350-edb4-49c9-b593-d223f7449a82
2024-02-16 10:26:14 +00:00
..
blocks Blocks: Allow reading the script handle from asset files 2024-02-12 11:40:49 +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
fonts Editor: Fix Font Library PHP unit tests. 2024-02-06 09:22:39 +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: Prevent incorrect language dropdown entries when there are .l10n.php files. 2024-02-16 10:26:14 +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