Make WordPress Core

#63472 closed defect (bug) (fixed)

Untranslatable default menu name in classic menus

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Priority: normal Milestone: 6.9
Component: I18N Version: 4.5
Severity: normal Keywords: good-first-bug has-patch
Cc: Focuses:

Description

There's a conditional in wp-admin/nav-menus.php:

if ( $one_theme_location_no_menus ) {
	$menu_name_val = 'value="' . esc_attr( 'Menu 1' ) . '"';
	...
}

esc_attr__() should be used instead to make the name translatable.

Introduced in [36379].

Change History (2)

This ticket was mentioned in PR #8828 on WordPress/wordpress-develop by @sainathpoojary.


15 months ago
#1

  • Keywords has-patch added; needs-patch removed

Trac ticket: #63472

#2 @SergeyBiryukov
15 months ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 60245:

I18N: Make default menu name translatable on the Menus screen.

Follow-up to [36379].

Props sainathpoojary, SergeyBiryukov.
Fixes #63472.

Note: See TracTickets for help on using tickets.