Make WordPress Core


Ignore:
Timestamp:
06/25/2025 02:16:49 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove unnecessary isset() check in Custom_Image_Header::step_2().

The only path where $oitar is not set returns in an earlier conditional.

Follow-up to [20806].

Props justlevine.
See #63268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r59789 r60351  
    952952        <?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?>
    953953        <?php
    954         if ( isset( $oitar ) && 1 === $oitar
     954        if ( 1 === $oitar
    955955            && ( current_theme_supports( 'custom-header', 'flex-height' )
    956956                || current_theme_supports( 'custom-header', 'flex-width' ) )
Note: See TracChangeset for help on using the changeset viewer.