[wp-trac] [WordPress Trac] #54314: Can not add script attribute with wp_enqueue_script()

WordPress Trac noreply at wordpress.org
Mon Oct 25 05:58:12 UTC 2021


#54314: Can not add script attribute with wp_enqueue_script()
-------------------------+------------------------------
 Reporter:  emrancu      |       Owner:  (none)
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+------------------------------

Comment (by emrancu):

 Need to add following attributes:
 1. type
 2. async
 3. crossorigin
 4. defer
 5. integrity
 6. nonce
 7. referrerpolicy

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


More information about the wp-trac mailing list