[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:37:54 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 joemcgill):

 Replying to [comment:17 flixos90]:
 > 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.

 That makes sense to me and would be a good example of how this could be
 implemented in a backwards compatible way.

 > 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?

 I'd suggest leaving this ticket open as a tracking ticket and just making
 separate commits for the themes and the core instances. Once all issues
 that we want to address have been updated, we can close this one.

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


More information about the wp-trac mailing list