Skip to content

Commit 5b0f14e

Browse files
committed
code quality: remove always-true negated bools
1 parent 6ecedbb commit 5b0f14e

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/wp-includes/class-wp-comment-query.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,8 @@ protected function get_comment_ids() {
685685

686686
break;
687687
}
688-
}
689688

690-
// Default to DESC.
691-
if ( ! $comment_id_order ) {
689+
// Default to DESC.
692690
$comment_id_order = 'DESC';
693691
}
694692

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4781,7 +4781,7 @@ function paginate_links( $args = '' ) {
47814781
);
47824782

47834783
$dots = true;
4784-
elseif ( $dots && ! $args['show_all'] ) :
4784+
elseif ( $dots ) :
47854785
$page_links[] = '<span class="page-numbers dots">' . __( '&hellip;' ) . '</span>';
47864786

47874787
$dots = false;

src/wp-includes/nav-menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
377377
return (int) $_menu['term_id'];
378378
}
379379

380-
if ( ! $_menu || ! isset( $_menu->term_id ) ) {
380+
if ( ! isset( $_menu->term_id ) ) {
381381
return 0;
382382
}
383383

0 commit comments

Comments
 (0)