diff --git a/includes/admin/class-wc-admin-taxonomies.php b/includes/admin/class-wc-admin-taxonomies.php index bb212d69ff3..82651dbc65d 100644 --- a/includes/admin/class-wc-admin-taxonomies.php +++ b/includes/admin/class-wc-admin-taxonomies.php @@ -387,7 +387,7 @@ class WC_Admin_Taxonomies { * @param object $term Term object. * @return array */ - public function product_cat_row_actions( $actions = array(), $term ) { + public function product_cat_row_actions( $actions, $term ) { $default_category_id = absint( get_option( 'default_product_cat', 0 ) ); if ( $default_category_id !== $term->term_id && current_user_can( 'edit_term', $term->term_id ) ) { diff --git a/includes/walkers/class-wc-product-cat-dropdown-walker.php b/includes/walkers/class-wc-product-cat-dropdown-walker.php index 4b64298bf54..9f525872fea 100644 --- a/includes/walkers/class-wc-product-cat-dropdown-walker.php +++ b/includes/walkers/class-wc-product-cat-dropdown-walker.php @@ -93,7 +93,7 @@ class WC_Product_Cat_Dropdown_Walker extends Walker { * @param string $output Passed by reference. Used to append additional content. * @return null Null on failure with no changes to parameters. */ - public function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) { + public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { if ( ! $element || ( 0 === $element->count && ! empty( $args[0]['hide_empty'] ) ) ) { return; } diff --git a/includes/walkers/class-wc-product-cat-list-walker.php b/includes/walkers/class-wc-product-cat-list-walker.php index cdd1fbba5d8..358018404e8 100644 --- a/includes/walkers/class-wc-product-cat-list-walker.php +++ b/includes/walkers/class-wc-product-cat-list-walker.php @@ -144,7 +144,7 @@ class WC_Product_Cat_List_Walker extends Walker { * @param string $output Passed by reference. Used to append additional content. * @return null Null on failure with no changes to parameters. */ - public function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) { + public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { if ( ! $element || ( 0 === $element->count && ! empty( $args[0]['hide_empty'] ) ) ) { return; }