crstauf/query-monitor-extend

image_sizes.php notice

Closed this issue · 2 comments

image_sizes.php has the sizes hardcoded (line 14-43)
in cases where a specific size doesn't exist, this will cause a PHP notice.

e.g. a WP page I work on doesnt have the medium_large size, causing errors all the time.

Please make this an apply_filters, so people can filter out or add any additional sizes they want to avoid getting notices.

Thanks for the report, @kkmuffme.

A result of QMX running on an old version of WordPress (<4.4);remove_image_size() cannot be used to remove built-in image sizes.