[wp-trac] [WordPress Trac] #42112: Customize Menus: Adjust "Menu Locations" labels for singular/plural

WordPress Trac noreply at wordpress.org
Tue Oct 10 17:51:54 UTC 2017


#42112: Customize Menus: Adjust "Menu Locations" labels for singular/plural
------------------------------+--------------------------
 Reporter:  melchoyce         |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  4.9
Component:  Customize         |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  ui
------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  has-patch => has-patch commit
 * owner:  bpayton => westonruter
 * status:  assigned => accepted


Comment:

 Replying to [comment:5 felipeelia]:
 > I think it couldn't be replaced by `_n` directly because we don't have
 the number of locations avaiable inside `print_templates()` function.
 Please correct me if I'm wrong.

 The printing of templates would happen even after `enqueue_scripts`, so
 the number of registered nav menus would for sure be known at that point.
 But since @bpayton would like to re-use the string, the patch is good as
 is.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42112#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list