[wp-trac] [WordPress Trac] #35966: Problem reintroduced in 4.4 with responsive img srcset
WordPress Trac
noreply at wordpress.org
Tue Mar 1 14:46:53 UTC 2016
#35966: Problem reintroduced in 4.4 with responsive img srcset
--------------------------+------------------------------
Reporter: hopetommola | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4.2
Severity: normal | Resolution:
Keywords: https | Focuses: multisite
--------------------------+------------------------------
Comment (by hopetommola):
Sorry for the delay. The weekend started with travel back from a
conference and ended with moving two houses into one.
* Yes, the siteurl is defined as https://blogs.hope.edu
* No constants set for WP_SITEURL in wp-config.php
* All values of wp_upload_dir() array are visible here:
https://blogs.hope.edu/upload-test/
Used:
{{{
<?php
$uploads = wp_upload_dir();
$uploads=implode("<br />",$uploads);
echo $uploads;
?>
}}}
I have temporarily added the following to my child theme's functions.php
file to force https:
{{{
add_filter( 'wp_calculate_image_srcset', function( $sources )
{
foreach( $sources as &$source )
{
if( isset( $source['url'] ) )
$source['url'] = set_url_scheme( $source['url'], 'https' );
}
return $sources;
}, PHP_INT_MAX );
}}}
ht: http://wordpress.stackexchange.com/questions/211375/how-do-i-disable-
responsive-images-in-wp-4-4
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35966#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list