[wp-trac] [WordPress Trac] #63432: Script dependency between Dashboard and Common

WordPress Trac noreply at wordpress.org
Sun May 11 16:45:47 UTC 2025


#63432: Script dependency between Dashboard and Common
---------------------------+--------------------------------------
 Reporter:  SirLouen       |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:
 Severity:  trivial        |   Keywords:  needs-patch dev-feedback
  Focuses:                 |
---------------------------+--------------------------------------
 Digging into #59301 I've found, by chance, that `dashboard.js` has a
 function `deprecateL10nObject` that depends on `common.js`

 I don't know exactly how I got the dependency error (I was playing around
 with some `dashboard.js` defers, when it was triggered), but I think It's
 pretty straightforward the dependency [https://github.com/SirLouen
 /wordpress-
 develop/blob/3f9317c2aa2ba650c0d930acaca1bb840c95a6da/src/js/_enqueues/wp/dashboard.js#L845
 checking in the dashboard.js code] and [https://github.com/SirLouen
 /wordpress-
 develop/blob/3f9317c2aa2ba650c0d930acaca1bb840c95a6da/src/js/_enqueues/admin/common.js#L66
 the common.js code]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63432>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list