[wp-trac] [WordPress Trac] #63693: wp_should_load_block_assets_on_demand doing it wrong too early

WordPress Trac noreply at wordpress.org
Thu Aug 21 15:42:47 UTC 2025


#63693: wp_should_load_block_assets_on_demand doing it wrong too early
---------------------------+------------------------------
 Reporter:  kkmuffme       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by stevenoks):

 Should block registration/asset registration be moved later, e.g. on
 parse_request or wp, so that the rest context is actually known?

 Or instead, should the wp_is_rest_endpoint() check be adjusted/removed in
 these functions, since it can’t return meaningful results that early
 anyway?

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


More information about the wp-trac mailing list