Skip to content

Commit

Permalink
Merge pull request #2458 from Codeinwp/bugfix/2457
Browse files Browse the repository at this point in the history
Fixed post images with WP 6.7
  • Loading branch information
vytisbulkevicius authored Jan 15, 2025
2 parents 3745d86 + c46f7e3 commit 6ea0733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/render/class-posts-grid-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Posts_Grid_Block {
*/
public function render( $attributes ) {

add_filter( 'wp_img_tag_add_auto_sizes', '__return_false' );
$has_pagination = isset( $attributes['hasPagination'] ) && $attributes['hasPagination'];
$page_number = 1;
$is_tiled = isset( $attributes['className'] ) && false !== strpos( $attributes['className'], 'is-style-tiled' );
Expand Down

0 comments on commit 6ea0733

Please sign in to comment.