Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35841 closed enhancement (duplicate)

Acceptance string deps

Reported by: sebastian.pisula Owned by:
Priority: normal Milestone:
Component: Script Loader Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

I think that if my script file require only jquery then I should can set as string.

For example:

<?php
wp_enqueue_script( 'handle', 'url', 'jquery' );

Attachments (1)

35841.patch (3.5 KB ) - added by sebastian.pisula 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @sebastian.pisula
11 years ago

  • Keywords has-patch added

#2 @sebastian.pisula
11 years ago

In wp-includes/class.wp-dependencies.php:489 is condition:

<?php
if ( ! is_array($this->deps) )
                        $this->deps = array();

#3 @ocean90
11 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #20683.

Note: See TracTickets for help on using tickets.