diff --git a/inc/class-wp-bootstrap-navwalker.php b/inc/class-wp-bootstrap-navwalker.php index 16af9bc..cf325d3 100644 --- a/inc/class-wp-bootstrap-navwalker.php +++ b/inc/class-wp-bootstrap-navwalker.php @@ -189,7 +189,7 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) { } // If item has_children add atts to . - if ( isset( $args->has_children ) && $args->has_children && 0 === $depth && $args->depth !== 1 ) { + if ( isset( $args->has_children ) && $args->has_children && 0 === $depth && 1 !== $args->depth ) { $atts['href'] = '#'; $atts['data-toggle'] = 'dropdown'; $atts['aria-haspopup'] = 'true'; diff --git a/inc/deprecated.php b/inc/deprecated.php index e877d76..46e9334 100644 --- a/inc/deprecated.php +++ b/inc/deprecated.php @@ -27,7 +27,7 @@ if ( ! function_exists( 'understrap_slbd_count_widgets' ) ) { if ( isset( $sidebars_widgets_count[ $sidebar_id ] ) ) : $widget_count = count( $sidebars_widgets_count[ $sidebar_id ] ); $widget_classes = 'widget-count-' . count( $sidebars_widgets_count[ $sidebar_id ] ); - if ( $widget_count % 4 == 0 || $widget_count > 6 ) : + if ( 0 == $widget_count % 4 || $widget_count > 6 ) : // Four widgets per row if there are exactly four or more than six $widget_classes .= ' col-md-3'; elseif ( 6 == $widget_count ) : diff --git a/phpcs.xml b/phpcs.xml index 2ad51c7..210c64a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -26,7 +26,6 @@ -