WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 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:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: General Keywords: wp_enqueue_script
Focuses: 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)

#1 follow-up: @nacin
9 years ago

Did you check the footer?

#2 in reply to: ↑ 1 @iworks
9 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.

#3 @scribu
9 years ago

  • 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.