Opened 14 years ago
Closed 14 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
21741.diff:
'queue'slugs to'enqueued'inwp_*_is()functionswp_*_is()functions'enqueued'to'queue'inWP_Dependencies->query()method.