[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
Wed Oct 16 10:24:54 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: reopened
Priority: normal | Milestone:
Component: Script Loader | Version: 5.2.3
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses: javascript
-------------------------------------+-------------------------
Comment (by KestutisIT):
Additionally in here it is written:
{{{
A possible incompatibility with WordPress 3.3 could arise if you are using
the wp_print_styles hook to enqueue styles — your styles may end up in the
admin.
}}}
https://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-
wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
That is ANOTHER UNEXPECTED BEHAVIOR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48098#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list