mai_site_layout() gets wrong result on single posts when Mai Post Grid is used on the page.
JiveDig opened this issue · 0 comments
JiveDig commented
This took forever to find and is related to this commit a570d01, though it turns out that isn't a solid fix.
The issue is actually caused by mai_get_image_src_srcset_sizes
calling wp_calculate_image_sizes
during the preload of featured/logo/images.
So far, it looks like calling get_queried_object_id()
makes sure we get the actual single post ID and not the ID from inside the loop in Mai Post Grid.