Skip to content

Commit

Permalink
elseif -> if
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed May 12, 2021
1 parent 767dfa7 commit 98a5051
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/full-site-editing/template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ function gutenberg_override_query_template( $template, $type, array $templates )
} else {
if ( $template ) {
return $template;
} elseif ( 'index' === $type ) {
}

if ( 'index' === $type ) {
if ( isset( $_GET['_wp-find-template'] ) ) {
wp_send_json_error( array( 'message' => __( 'No matching template found.', 'gutenberg' ) ) );
}
Expand Down

0 comments on commit 98a5051

Please sign in to comment.