Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21741 closed enhancement (fixed)

wp_script_is() and wp_style_is() should use 'enqueued' so it reads like a sentence

Reported by: nacin's profile nacin Owned by: nacin's profile nacin
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


wp_script_is( $handle, $list = 'queue' ) reads like "Is the script queue?" Another parameter for $list is 'registered', "Is the script registered?" Given that the function is wp_enqueue_script(), we should allow for $list = 'enqueued', as in "Is the script enqueued?" Same goes for wp_style_is().

Attachments (1)

21741.diff (3.6 KB) - added by obenland 12 years ago.

Download all attachments as: .zip

Change History (4)

12 years ago

#1 @obenland
12 years ago


  • Changes all 'queue' slugs to 'enqueued' in wp_*_is() functions
  • Matches PHPDoc for wp_*_is() functions
  • Adds indentation, simplification of return value and mapping from 'enqueued' to 'queue' in WP_Dependencies->query() method.

#3 @nacin
12 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21672]:

Have wp_script_is() and wp_style_is() accept 'enqueued', as it reads better than 'queue' and is consistent with 'registered'. fixes #21741.

Note: See TracTickets for help on using tickets.