[wp-trac] [WordPress Trac] #63472: Untranslatable default menu name in classic menus

WordPress Trac noreply at wordpress.org
Thu May 22 09:17:40 UTC 2025


#63472: Untranslatable default menu name in classic menus
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  6.9
Component:  I18N            |    Version:  4.5
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 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].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63472>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list