Skip to content

Commit 6bc94ef

Browse files
Coding Standards: Remove redundant check in wp-admin/nav-menus.php.
The `$add_new_screen` variable is already checked as falsey a few lines above, and is a prerequisite for reaching this code. Follow-up to [51539]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60440 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5a561eb commit 6bc94ef

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/wp-admin/nav-menus.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,14 +1122,12 @@ function wp_nav_menu_max_depth( $classes ) {
11221122
<p><?php echo $starter_copy; ?></p>
11231123
</div>
11241124

1125-
<?php if ( ! $add_new_screen ) : ?>
1126-
<div id="nav-menu-bulk-actions-top" class="bulk-actions" <?php echo $hide_style; ?>>
1127-
<label class="bulk-select-button" for="bulk-select-switcher-top">
1128-
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
1129-
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
1130-
</label>
1131-
</div>
1132-
<?php endif; ?>
1125+
<div id="nav-menu-bulk-actions-top" class="bulk-actions" <?php echo $hide_style; ?>>
1126+
<label class="bulk-select-button" for="bulk-select-switcher-top">
1127+
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
1128+
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
1129+
</label>
1130+
</div>
11331131

11341132
<?php
11351133
if ( isset( $edit_markup ) && ! is_wp_error( $edit_markup ) ) {

0 commit comments

Comments
 (0)