Skip to content

Commit c0458f1

Browse files
Coding Standards: Remove unnecessary isset() check in _get_block_templates_files().
`$area` is proven set by the left side of the conditional. Follow-up to [55687]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60339 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4696d7a commit c0458f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/block-template-utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ function _get_block_templates_files( $template_type, $query = array() ) {
437437

438438
if ( 'wp_template_part' === $template_type ) {
439439
$candidate = _add_block_template_part_area_info( $new_template_item );
440-
if ( ! isset( $area ) || ( isset( $area ) && $area === $candidate['area'] ) ) {
440+
if ( ! isset( $area ) || $area === $candidate['area'] ) {
441441
$template_files[ $template_slug ] = $candidate;
442442
}
443443
}

0 commit comments

Comments
 (0)