Skip to content

Commit

Permalink
Resolves #40767 - Prevent error with http_request_timeout filter (#40791
Browse files Browse the repository at this point in the history
)

* Add default blank URL

* Add changelog
  • Loading branch information
tbradsha authored Jan 1, 2025
1 parent 2052ac9 commit 4b52dc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Filters: Prevent error when `http_request_timeout` filter is used incorrectly.
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/modules/shortcodes/others.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @return int The timeout value in seconds.
*/
function jetpack_oembed_timeout_override( $timeout, $url ) {
function jetpack_oembed_timeout_override( $timeout, $url = '' ) {
if (
is_string( $url )
&& str_contains( $url, 'iwmb.icloud.com' )
Expand Down

0 comments on commit 4b52dc9

Please sign in to comment.