Skip to content

Commit 40bc4f5

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60351 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 512f805 commit 40bc4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/class-custom-image-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public function step_2() {
951951
<p class="submit">
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' ) )
957957
) {

0 commit comments

Comments
 (0)