Opened 5 months ago
Last modified 7 weeks ago
#65526 assigned enhancement
Splitting functions.php into separate tests per functions
| Reported by: | pbearne | Owned by: | pbearne |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | tests |
Description (last modified by )
This ticket has the last of the functions not moved to separate test classes/files
And deletes the original file
moved
mysql2date
current_time
current_datetime
date_i18n
wp_date
wp_get_http_headers
split
wpTimezone and wpTimezoneString
moved from functions.php
human_readable_durationwp_extract_urlspath_is_absolutepath_joinwp_normalize_pathwp_unique_filenamewp_check_filetype_and_extwp_get_image_mimewp_json_encodewp_recursive_ksortvalidate_filewp_generate_uuid4wp_parse_argsbool_from_ynadd_query_argget_allowed_mime_typeswp_get_mime_types_canonical_charset_device_can_uploadwp_json_file_decodemysql_to_rfc3339wp_get_ext_typeswp_ext2typewp_raise_memory_limitwp_is_uuidwp_unique_idwp_getimagesizewp_is_streamwp_is_json_media_typewp_get_default_extension_for_mime_type
moved/renamed from upload.php
_wp_upload_dir
wp_send_json
moved from file.php
get_file_data
tickets waiting for merging
wp_widgets_add_menu: #60179.
nocache_headers #54490
wp_mkdir_p #57081
wp_upload_bits #65534
wp_maybe_load_widgets #57201
wp_privacy_exports_dir #59710 merged
wp_privacy_exports_url #59709 merged
_deprecated_function #60116
status_header#65650
get_temp_dir#65651
wp_json_encode#65652
wp_get_update_php_url#65653
get_dirsize#65654
wp_die (and its various handlers)#65655
Change History (19)
This ticket was mentioned in PR #12307 on WordPress/wordpress-develop by @pbearne.
5 months ago
#6
- Keywords has-patch has-unit-tests added
#7
@
5 months ago
The tests moved from Functions are moved as is with no changes to the code (apart from a dataset I added)
@wildworks commented on PR #12307:
4 months ago
#12
Hi @pbearne, thanks for working on this. Could you please resolve the merge conflicts to move this PR forward?
#13
@
3 months ago
For history, a ticket title and summary should be clear and descriptive. Trac is the history of this project. 5 years from now, people reading this ticket should be able to immediately understand what this ticket is about by just reading the title and the summary.
Instead, I had to look at the linked PR to understand it.
When you have a chance, please edit the title and add a concise summary.
#14
@
3 months ago
- Milestone 7.1 → 7.2
It looks like there is unaddressed feedback on the PR and this is not critical for the 7.1 release, so I am going to punt this.
#15
@
2 months ago
- Description modified (diff)
- Summary last of the tests for functions.php → Splitting functions.php into separate tests per functions
Trac ticket: https://core.trac.wordpress.org/ticket/65526
AI assistance: Yes
Tool(s): Junie (JetBrains)
Model(s): gemini-3-flash-preview
Used for: Code analysis, test implementation, and workflow management. The final implementation and tests were reviewed and edited by me.