Opened 3 years ago

Closed 3 years ago

#15126 closed defect (bug) (duplicate)

wp_enqueue_script does not load scripts if definition use $scripts->add_data

Reported by: iworks Owned by:
Priority: normal Milestone:
Component: General Version: 3.0.1
Severity: normal Keywords: wp_enqueue_script
Cc:

Description

wp_enqueue_script does not load scripts if definition use $scripts->add_data (wp-includes/script-loader.php) from class WP_Dependency (wp-includes/class.wp-dependencies.php).

if I remove lines like '$scripts->add_data' wp_enqueue_script works good.

issue tested on 'thickbox', 'jquery-table-hotkeys', 'jquery-hotkeys'

Change History (3)

comment:1 follow-up: ↓ 2   nacin3 years ago

Did you check the footer?

comment:2 in reply to: ↑ 1   iworks3 years ago

Replying to nacin:

Did you check the footer?

I don't enqueue in footer.

If I remove this line, script is in code, with this line ... no.

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

I ran into this problem when working on #5919.

Marking as dup of #9346

Note: See TracTickets for help on using tickets.