[wp-trac] [WordPress Trac] #58634: Update uses of script registration functions to use new function signature

WordPress Trac noreply at wordpress.org
Tue Aug 29 22:34:36 UTC 2023


#58634: Update uses of script registration functions to use new function signature
-------------------------------------------------+-------------------------
 Reporter:  joemcgill                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.4
Component:  General                              |     Version:  6.3
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:  javascript
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @joemcgill
 > if those themes are running in older versions of WP, then a more refined
 approach may be needed. I'd be happy for those to be addressed as a
 separate ticket.

 I think we can make the current PR work in a way that's backward
 compatible. As outlined in the script loading strategy dev note, as long
 as we don't use `array( 'in_footer' => false )` anywhere, it will be
 backward compatible.

 Given where the current PR is at, maybe we rename this ticket to focus on
 the bundled themes, and open a new one for updating the core usage?

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


More information about the wp-trac mailing list