[wp-trac] [WordPress Trac] #60565: download_url() returns inaccurate error message on missing URL argument
WordPress Trac
noreply at wordpress.org
Fri Feb 16 20:53:37 UTC 2024
#60565: download_url() returns inaccurate error message on missing URL argument
-------------------------+-----------------------------
Reporter: hinnerk | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 6.4.3
Severity: trivial | Keywords:
Focuses: |
-------------------------+-----------------------------
Expected:
{{{#!php
<?php
if ( ! $url ) {
return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) );
}
}}}
Current implementation:
{{{#!php
<?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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60565>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list