After upgrading to WordPress 4.4, any images we upload using Add Media appear as broken in the Media Library.
We're using HTTP, not HTTPS.
I have tried:
- Chmodding to 744
/wp-content/uploads/
and all subdirectories. - Chmodding to 755
/wp-content/uploads/
and all subdirectories. - Chmodding to 644 all files in
/wp-content/uploads/
. - De-activating all plugins and switching to TwentyThirteen theme.
Adding the following code to the child theme's
functions.php
:add_filter( 'wp_get_attachment_image_attributes', function( $attr ) { if ( isset( $attr['sizes'] ) ) unset( $attr['sizes'] ); if ( isset( $attr['srcset'] ) ) unset( $attr['srcset'] ); return $attr; }, PHP_INT_MAX ); add_filter( 'wp_calculate_image_sizes', '__return_false', PHP_INT_MAX ); add_filter( 'wp_calculate_image_srcset', '__return_false', PHP_INT_MAX ); remove_filter( 'the_content', 'wp_make_content_images_responsive' );
Refer:
The issue remains.
An example image that appears broken is: http://www.arcadenightclub.com.au/wp-content/uploads/2015/12/Xmas-Festivus-Arcade-Nightclub.jpg