Skip to content

Commit

Permalink
Fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored and mtdkei committed Feb 7, 2025
1 parent e415aec commit f5e4cfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/vk-blocks/view/class-vk-blocks-postlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ public static function get_loop_query( $attributes ) {
break;

case 'only':
$sticky_posts = get_option( 'sticky_posts' );
$args['post__in'] = ! empty( $sticky_posts ) ? $sticky_posts : array( 0 );
$sticky_posts = get_option( 'sticky_posts' );
$args['post__in'] = ! empty( $sticky_posts ) ? $sticky_posts : array( 0 );
$args['posts_per_page'] = count( $args['post__in'] );
$args['orderby'] = $attributes['orderby'];
$args['orderby'] = $attributes['orderby'];
break;
}

Expand Down

0 comments on commit f5e4cfd

Please sign in to comment.