Skip to content

Commit fb53150

Browse files
committed
Correct typeo in function name 'seporate' -> 'separate'
Version bumber to 4v4.2.0
1 parent 4290f53 commit fb53150

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#CHANGELOG
22

3+
## [4.2.0]
4+
- Fix typo in function name 'seporate'->'separate' (private function, no need to add back-compat).
5+
36
## [4.1.0]
47
- Prevent error `trying to get property of non-object` when no menu is set to a location using the walker.
58
- Add `$depth` as 4th parameter passed to `nav_menu_link_attributes`.

class-wp-bootstrap-navwalker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
116116
* NOTE: linkmod and icon class arrays are passed by reference and
117117
* are maybe modified before being used later in this function.
118118
*/
119-
$classes = self::seporate_linkmods_and_icons_from_classes( $classes, $linkmod_classes, $icon_classes, $depth );
119+
$classes = self::separate_linkmods_and_icons_from_classes( $classes, $linkmod_classes, $icon_classes, $depth );
120120

121121
// Join any icon classes plucked from $classes into a string.
122122
$icon_class_string = join( ' ', $icon_classes );
@@ -396,7 +396,7 @@ public static function fallback( $args ) {
396396
*
397397
* @return array $classes a maybe modified array of classnames.
398398
*/
399-
private function seporate_linkmods_and_icons_from_classes( $classes, &$linkmod_classes, &$icon_classes, $depth ) {
399+
private function separate_linkmods_and_icons_from_classes( $classes, &$linkmod_classes, &$icon_classes, $depth ) {
400400
// Loop through $classes array to find linkmod or icon classes.
401401
foreach ( $classes as $key => $class ) {
402402
// If any special classes are found, store the class in it's

0 commit comments

Comments
 (0)