Skip to content

Commit

Permalink
restore this
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh committed Sep 16, 2024
1 parent 03baa3f commit 695f536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-plugin-curated-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function with_query_context( array $context, array $attributes, WP_Block_
$pinned_posts = array_map( fn ( $id ) => $id && 'publish' === get_post_status( $id ) ? $id : null, $pinned_posts );

$queries = new Positioned_Post_Queries(
positioned: $pinned_posts,
positioned: is_array( $pinned_posts ) ? $pinned_posts : [],

Check failure on line 80 in src/class-plugin-curated-posts.php

View workflow job for this annotation

GitHub Actions / PR Tests PHP 8.3 WordPress latest

Else branch is unreachable because ternary operator condition is always true.
default_per_page: $args['posts_per_page'],
origin: $this->queries,
);
Expand Down

0 comments on commit 695f536

Please sign in to comment.