Make WordPress Core

Changeset 60339


Ignore:
Timestamp:
06/23/2025 12:41:37 PM (11 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r60328 r60339  
    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                }
Note: See TracChangeset for help on using the changeset viewer.