Opened 3 years ago

Last modified 3 years ago

#5687 new defect (bug) Base Theme: Register navigation JS for use in child themes

Reported by: ryelle's profile ryelle Owned by:
Milestone: Priority: normal
Component: Site Keywords:

Description (last modified by ryelle)

As of r6068, the navigation.js file has been commented out of the wporg parent theme, which means the child themes need to re-enqueue it from scratch (and if it's changed, the versions need to be bumped across all instances).

Instead, we could use wp_register_script in the parent theme to set up the file & information, and let child themes opt in to using it with wp_enqueue_script( 'wporg-navigation' ).

Example of a child theme re-enqueuing the file:

Attachments (1)

5687.diff (1.6 KB) - added by ryelle 3 years ago.

Download all attachments as: .zip

Change History (2)

3 years ago

#1 @ryelle
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.