[wp-trac] [WordPress Trac] #48098: ReferenceError: jQuery is not defined even if it is enqueued ('wp_display_script_once' needed)

WordPress Trac noreply at wordpress.org
Tue Oct 15 20:58:13 UTC 2019


#48098: ReferenceError: jQuery is not defined even if it is enqueued
('wp_display_script_once' needed)
-------------------------------------+-------------------------
 Reporter:  KestutisIT               |       Owner:  (none)
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Script Loader            |     Version:  5.2.3
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  2nd-opinion needs-patch  |     Focuses:  javascript
-------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 @KestutisIT

 The existing function is
 https://developer.wordpress.org/reference/functions/wp_print_scripts/

 However, the recommended approach is to use code similar to the example
 provided above.

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


More information about the wp-trac mailing list