From 9df0603c96c40fc19b96eef420c37761ef02bdb3 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 27 May 2024 13:55:12 +0000 Subject: [PATCH] HTTP API: Improve `download_url()` error message. This changeset improves the error message returned when no URL is provided, and updates the related unit tests accordingly. Props hinnerk, audrasjb. Fixes #60565. Built from https://develop.svn.wordpress.org/trunk@58208 git-svn-id: http://core.svn.wordpress.org/trunk@57671 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 7f95c72282..b09d69ffb6 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1155,7 +1155,7 @@ function wp_handle_sideload( &$file, $overrides = false, $time = null ) { function download_url( $url, $timeout = 300, $signature_verification = false ) { // WARNING: The file is not automatically deleted, the script must delete or move the file. if ( ! $url ) { - return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) ); + return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) ); } $url_path = parse_url( $url, PHP_URL_PATH ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4cd52d7cc2..5c0af1d98b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58207'; +$wp_version = '6.6-alpha-58208'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.