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 | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
21741.diff:
'queue'
slugs to'enqueued'
inwp_*_is()
functionswp_*_is()
functions'enqueued'
to'queue'
inWP_Dependencies->query()
method.