Skip to content

Commit 384201b

Browse files
committed
Make string in fallback method translatable
1 parent 8ddb536 commit 384201b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class-wp-bootstrap-navwalker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public static function fallback( $args ) {
365365
if ( $menu_class ) {
366366
$fallback_output .= ' class="' . esc_attr( $menu_class ) . '"'; }
367367
$fallback_output .= '>';
368-
$fallback_output .= '<li><a href="' . esc_url( admin_url( 'nav-menus.php' ) ) . '" title="">' . esc_attr( 'Add a menu', '' ) . '</a></li>';
368+
$fallback_output .= '<li><a href="' . esc_url( admin_url( 'nav-menus.php' ) ) . '" title="' . esc_attr__( 'Add a menu', 'wp-bootstrap-navwalker' ) . '">' . esc_html__( 'Add a menu', 'wp-bootstrap-navwalker' ) . '</a></li>';
369369
$fallback_output .= '</ul>';
370370
if ( $container ) {
371371
$fallback_output .= '</' . esc_attr( $container ) . '>';

0 commit comments

Comments
 (0)