Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

165 - Undefined index: sizes #16

Closed
jgraup opened this issue May 27, 2015 · 1 comment
Closed

165 - Undefined index: sizes #16

jgraup opened this issue May 27, 2015 · 1 comment

Comments

@jgraup
Copy link

jgraup commented May 27, 2015

I realized something is messed up on my server to cause the absence of 'sizes' coming from wp_get_attachment_metadata ($id ); but either way, I'm getting this error:

NOTICE: wp-content/plugins/ricg-responsive-images/wp-tevko-responsive-images.php:165 - Undefined index: sizes

Would it be possible to change your line 165 to:

$img_sizes = isset($img_meta['sizes']) ? $img_meta['sizes'] : array();

Since 'full' is immediately added and the next loop runs through available sizes set, this wouldn't be too big of a hit to the whole system - only help to pad a a potential error from dirty data.

Thanks in advance for your consideration.

@jgraup
Copy link
Author

jgraup commented Jun 17, 2015

"This plugin is officially deprecated" - No need to keep this around.

@jgraup jgraup closed this as completed Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant