#60565 closed enhancement (fixed)
download_url() returns inaccurate error message on missing URL argument
| Reported by: | hinnerk | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | HTTP API | Version: | 6.4.3 |
| Severity: | trivial | Keywords: | has-patch commit has-unit-tests |
| Cc: | Focuses: |
Description
Expected:
<?php if ( ! $url ) { return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) ); }
Current implementation:
<?php if ( ! $url ) { return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) ); }
see
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/file.php#L1158
Change History (8)
#1
@
3 years ago
- Keywords has-patch added
- Milestone Awaiting Review → 6.6
- Owner set to
- Status new → reviewing
#2
@
2 years ago
@audrasjb can you proceed with this one? I don't see an actual patch, but it looks quite reasonable, still this is a string change that need to be done.
This ticket was mentioned in PR #6571 on WordPress/wordpress-develop by hinnerk-a.
2 years ago
#3
This ticket was mentioned in PR #6647 on WordPress/wordpress-develop by @audrasjb.
2 years ago
#4
#5
@
2 years ago
- Keywords commit has-unit-tests added
The above PR also updates the related unit tests.
Marking for commit.
@audrasjb commented on PR #6571:
2 years ago
#6
Closing in favor of https://github.com/WordPress/wordpress-develop/pull/6647 which updates the related unit tests.
@audrasjb commented on PR #6647:
2 years ago
#8
committed in https://core.trac.wordpress.org/changeset/58208
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket and patch,
Self assigning for review.