id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 35480,Some notice and warning in wp_calculate_image_srcset() function media.php,overclokk,joemcgill,"In a site I'm working I get some notice and warning in file media.php: {{{ Warning: Illegal string offset 'file' in wp-includes/media.php on line 1088 Notice: Uninitialized string offset: 0 in wp-includes/media.php on line 1088 Warning: Illegal string offset 'width' in wp-includes/media.php on line 1101 Warning: Illegal string offset 'width' in wp-includes/media.php on line 1108 Notice: Uninitialized string offset: 0 in wp-includes/media.php on line 1108 }}} To solve this I put this line of code to check the variable $image (at line 1085 just after the foreach) if it is an array: {{{#!php