Skip to content

Commit

Permalink
No assoc array needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed May 13, 2020
1 parent 7130446 commit ace511a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ function filter_rest_wp_template_query( $args, $request ) {

$current_template = gutenberg_find_template_post_and_parts( $template_type );
if ( isset( $current_template ) ) {
$template_ids[ $current_template['template_post']->post_name ] = $current_template['template_post']->ID;
$template_ids[] = $current_template['template_post']->ID;
}
}
$args['post__in'] = array_values( $template_ids );
$args['post__in'] = $template_ids;
}

return $args;
Expand Down

0 comments on commit ace511a

Please sign in to comment.