diff --git a/includes/utils.php b/includes/utils.php index 3579a8d67..ef1b4772e 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -905,7 +905,18 @@ function process_media( $url, $post_id, $args = [] ) { * * @return {array} Media extensions to be processed. */ - $allowed_extensions = apply_filters( 'dt_allowed_media_extensions', array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' ), $url, $post_id ); + $allowed_extensions = apply_filters( + 'dt_allowed_media_extensions', + array( + 'jpg', + 'jpeg', + 'jpe', + 'gif', + 'png' + ), + $url, + $post_id + ); preg_match( '/[^\?]+\.(' . implode( '|', $allowed_extensions ) . ')\b/i', $url, $matches ); if ( ! $matches ) { $media_name = null;