Skip to content

Commit c399876

Browse files
committed
Merge branch 'master' of github.com:twittem/wp-bootstrap-navwalker
2 parents b0eb992 + 8b0200d commit c399876

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if ( ! file_exists( get_template_directory() . '/class-wp-bootstrap-navwalker.ph
4747
return new WP_Error( 'class-wp-bootstrap-navwalker-missing', __( 'It appears the class-wp-bootstrap-navwalker.php file may be missing.', 'wp-bootstrap-navwalker' ) );
4848
} else {
4949
// file exists... require it.
50-
require_once get_template_directory . '/class-wp-bootstrap-navwalker.php';
50+
require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php';
5151
}
5252
```
5353
You will also need to declare a new menu in your `functions.php` file if one doesn't already exist.

class-wp-bootstrap-navwalker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function start_lvl( &$output, $depth = 0, $args = array() ) {
7474
// with pointer at end of array check if we got an ID match.
7575
if ( end( $matches[2] ) ) {
7676
// build a string to use as aria-labelledby.
77-
$lablledby = 'aria-labelledby="' . end( $matches[2] ) . '"';
77+
$labelledby = 'aria-labelledby="' . end( $matches[2] ) . '"';
7878
}
79-
$output .= "{$n}{$indent}<ul$class_names $lablledby role=\"menu\">{$n}";
79+
$output .= "{$n}{$indent}<ul$class_names $labelledby role=\"menu\">{$n}";
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)