PluginProbe
Meow Gallery / 5.5.6
Meow Gallery v5.5.6
5.5.6 5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 All 158 releases
← All changes | classes/core.php +8 -1 5.5.5 → 5.5.6 View file →
@@ -1022,9 +1022,16 @@
1022 1022 $mergedArray['featured_post_url'] = get_permalink( $post_id );
1023 1023
1024 1024 }
1025 1025
1026 - $result[] = array_merge( $image, $mergedArray, $orientation );
1026 + // Everything above can read the full attachment metadata, but it ends up in the page as
1027 + // data-gallery-images, and the front-end only needs the dimensions. Every size and the EXIF
1028 + // were bloating the HTML of big galleries (wp.org forum, 2026-09). The map layout returns
1029 + // earlier with its own data.
1030 + $item = array_merge( $image, $mergedArray, $orientation );
1031 + $meta = is_array( $image['meta'] ) ? $image['meta'] : [];
1032 + $item['meta'] = [ 'width' => $meta['width'] ?? null, 'height' => $meta['height'] ?? null ];
1033 + $result[] = $item;
1027 1034 }
1028 1035
1029 1036 $this->gallery_process = $previous_gallery_process;
1030 1037 $this->gallery_layout = $previous_gallery_layout;