[wp-trac] [WordPress Trac] #45231: Twenty Nineteen: Localize script only when needed

WordPress Trac noreply at wordpress.org
Tue Oct 30 14:43:25 UTC 2018


#45231: Twenty Nineteen: Localize script only when needed
---------------------------+-----------------------
 Reporter:  kraftbj        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.0
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------
 In functions.php of Twenty Nineteen, `wp_localize_script( 'twentynineteen-
 skip-link-focus-fix', 'twentynineteenScreenReaderText',
 $twentynineteen_l10n );` is executed whether or not `$twentynineteen_l10n`
 has been set, resulting in a `NOTICE: wp-
 content/themes/twentynineteen/functions.php:167 - Undefined variable:
 twentynineteen_l10n` on sites without nav menus.

 Patch incoming.

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


More information about the wp-trac mailing list