$data is not verified if it’s array, then workaround patch is as following.
media.php:535
foreach ( $imagedata['sizes'] as $_size => $data) { if ( is_array($data) ) { // already cropped to width or height; so use this size if ( ( $data['width'] == $size[0] && $data['height'] <= $size[1] ) || ( $data['height'] == $size[1] && $data['width'] <= $size[0] ) ) { $file = $data['file']; list($width, $height) = image_constrain_size_for_editor( $data['width'], $data['height'], $size ); return compact( 'file', 'width', 'height' ); } // add to lookup table: area => size $areas[$data['width'] * $data['height']] = $_size; } }
Related Posts:
- How to Fix HTTP Error When Uploading Images?
- Minimum Dimensions Requirement for Featured Image?
- Add Image Dimensions to Media Library Tab on Media Upoader
- Use wp_remote_get to add image to media library
- Replicate featured image functionality
- Need clear explanation about medias/files/attchments
- How to replace featured image upload option with the post media image option
- media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation
- How to bring files from the upload directory to the media gallery?
- WordPress image crop probems
- Images uploaded on frontend display correctly but not in media editor.
- Thumbnail (featured image) and Media Library cleanup queries help needed
- Set featured image from auto generated video thumbnail url php
- After migrating media library is not showing thumbnails
- How to modify Media Library images DPI [ image quality down to make small in size ] [closed]
- How to get image title/alt attribute?
- How to set featured image to custom post from outside programmatically
- Generate Thumbnails only for Featured Images
- How to add post featured image to RSS item tag?
- Get featured image URL by page id
- wp_get_attachment_image_src() and custom sizes
- What’s the difference between post thumbnails and featured images (if any)?
- What is your take: TimThumb vs. WordPress Thumbnails? The great debate [closed]
- How to change the naming of the resized image files
- How to get featured post title & image using JSON API?
- Display thumbnail only on the very first post in the loop?
- Allow user to manually set crop area of default/custom image sizes on upload [closed]
- Featured image is not showing in wp-admin
- User facing form to upload image on wordpress
- List category posts – Thumbnails are not displaying
- Display Taxonomy Image on single.php
- Need to take the first image out of posts and set it as the featured image
- featured image metabox not showing on the default post types edit page
- Change featured image urls in database
- Get smaller size of image, get_the_post_thumbnail
- Look Through Family Tree and Find Featured Image
- Different thumbnail sizes
- wordpress get_the_post_thumbnail can’t set size
- Featured Images are not able to be set
- How to print the thumbnail only if a post has a thumbnail
- Animated Gif as Featured Image
- Single post layout based on featured image size
- Migrating problem – featured images
- Set Featured Image by URL Form Post
- Stuck on save/upload featured images plugin
- adaptive featured images wordpress 4.4 grid
- ACF – Add/update featured image (for videos) by field [closed]
- Forcing a user to crop the featured image in a certain aspect ratio
- the_post_thumbnail(“size”) returns same image for all sizes except thumbnail
- oEmbed, thumbnails and wordpress
- Show last 2 image attachments from posts
- Set featured image from external URL
- Show Multiple Size URL of one Featured Image/Thumbnail?
- remove and disable image link in functions.php
- Get current post featured image ID
- Redirect to another page using contact form 7? [closed]
- Why does the_post_thumbnail output full sized images after activating post-thumbnails support?
- Can this be done? Create 50×50 thumbnails of all existing featured images?
- Query to delete all featured images and remove post meta?
- Add Image Size for Featured Image with Responsive Design
- Pull through featured image in a custom menu
- How do I get posts where image is larger than…?
- What is the URL pattern for image thumbnails + sizes?
- Category page with thumb is ok but can’t do the same with tags
- Programmatically set thumbnail via URL using DOM and XPATH – Where to add ELSEIF
- Better way to show Description and image Captions
- Cannot upload featured image to a custom post type
- Different size thumbnails on home and single pages
- Next Prev Post link rendering current post thumbnail
- How to add thumbnail images? (Set Featured Image doesn’t work)
- custom image size not being fetched
- Resizing images failing
- Tag,php – how to get it to display featured post image? [closed]
- Featured images have disappeared in the Trending section only of my website
- Blog replace single post page featured image
- Removing extra large generated images disables all crops
- How to use tag in featured image
- How to automatically add first image of post as thumbnail?
- Change wording of default thumbnail metabox
- featured image metabox not moving custom post type
- How to convert feature image as background image
- about featured image
- Moving Featured Images
- Add Play Icon on thumbnail overlay for video post types
- How do I Get WordPress Featured image from Frontend
- Featured Image, and Image in post
- Get Post thumbnail without width/height attribute
- if statement for featured images
- Thumbnail size according to width and height
- Featured Image URL is Showing but not thumbnail
- Is there a way to force Featured image to show as attachement?
- Import Dummy Content and Post Thumbnails
- Fetch first image URL from post and set as featured image URL
- How to stop WordPress from creating native thumbnails?
- Why some images are not allowed to be edited only for thumbnails?
- get_post_thumbnail_id() not getting correct featured image after post edited
- the_ID & wp_get_attachment_image_src(the_ID(), “medium”) blank
- How to I remove Featured Image from the Posts/Category Lists?
- How do I change the size of the feature picture of a single post?
- Close featured image modal windows with JS