[wp-trac] [WordPress Trac] #59302: Update script registration in default themes to use new function signature

WordPress Trac noreply at wordpress.org
Wed Sep 13 00:26:37 UTC 2023


#59302: Update script registration in default themes to use new function signature
---------------------------+--------------------------
 Reporter:  flixos90       |       Owner:  flixos90
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  6.4
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------
Changes (by peterwilsoncc):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Generally WP tries to keep bundled themes compatible with the WordPress
 version in which they were introduced. As an example of this, 2011 checks
 the [https://github.com/WordPress/wordpress-
 develop/blob/c696a2f773d9e5d61ea39e46f5d95f4442c63dfa/src/wp-
 content/themes/twentyeleven/inc/block-patterns.php block pattern functions
 exist] prior to calling them.

 I think these changes and those in #59316 will need to be modified to
 account for the older function signature.

 I've reopened this to work on a PR.

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


More information about the wp-trac mailing list