Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#15126 closed defect (bug) (duplicate)

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

Reported by: iworks's profile 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
14 years ago

Did you check the footer?

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