[wp-trac] [WordPress Trac] #61958: Rename `wp_should_load_separate_core_block_assets()` to clarify its purpose

WordPress Trac noreply at wordpress.org
Thu Aug 29 21:26:24 UTC 2024


#61958: Rename `wp_should_load_separate_core_block_assets()` to clarify its purpose
-------------------------+-----------------------
 Reporter:  flixos90     |       Owner:  flixos90
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  6.7
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:  template
-------------------------+-----------------------

Comment (by flixos90):

 Replying to [comment:3 swissspidy]:
 > IMHO there isn't much value in renaming this function, it will just
 cause unnecessary work for extenders and maintenance burden for core
 maintainers.

 I disagree. The function and filter names are confusing (as proven by the
 Slack thread for example), so there is value in renaming them. There would
 be an easy migration path, and deprecations will realistically never be
 removed anyway, so there's no breakage. Code using the old function/filter
 would continue to work forever, they'd just be encouraged to migrate.

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


More information about the wp-trac mailing list