Skip to content

Commit

Permalink
CS feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 19, 2025
1 parent 92ddf66 commit efb4ace
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2489,13 +2489,9 @@ function build_query_vars_from_query_block( $block, $page ) {
*/
$query['post__in'] = ! empty( $sticky ) ? $sticky : array( 0 );
$query['ignore_sticky_posts'] = 1;
}

if ( 'exclude' === $block->context['query']['sticky'] ) {
} elseif ( 'exclude' === $block->context['query']['sticky'] ) {
$query['post__not_in'] = array_merge( $query['post__not_in'], $sticky );
}

if ( 'ignore' === $block->context['query']['sticky'] ) {
} elseif ( 'ignore' === $block->context['query']['sticky'] ) {
$query['ignore_sticky_posts'] = 1;
}
}
Expand Down

0 comments on commit efb4ace

Please sign in to comment.