Skip to content

Commit ec1490c

Browse files
Update media.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 7af02dc commit ec1490c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6372,7 +6372,7 @@ function wp_get_image_editor_output_format( $filename, $mime_type ) {
63726372
*/
63736373
function wp_is_client_side_media_processing_enabled(): bool {
63746374
// This is due to SharedArrayBuffer requiring a secure context.
6375-
$enabled = ( is_ssl() || 'localhost' === $_SERVER['HTTP_HOST'] );
6375+
$enabled = ( is_ssl() || 'localhost' === strtok( $_SERVER['HTTP_HOST'] ?? '', ':' ) );
63766376

63776377
/**
63786378
* Filters whether client-side media processing is enabled.

0 commit comments

Comments
 (0)