#35367 closed defect (bug) (fixed)
Documented attributes for audio shortcode misleading (also video).
| Reported by: | gitlost | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Media | Version: | 3.6 |
| Severity: | normal | Keywords: | has-patch has-unit-tests commit |
| Cc: | Focuses: | docs |
Description
The header doc for the audio shortcode wp_audio_shortcode function lists class and style as attributes, but they aren't really as they're just ignored if given. Similarly for the video shortcode class attribute.
Attachments (1)
Change History (9)
#1
@
11 years ago
- Keywords has-patch has-unit-tests added
- Milestone Awaiting Review → 4.5
- Version 3.9 → 3.6
#2
follow-up:
↓ 3
@
11 years ago
Wow that was quick! Would the filters best be kept though for BC, eg apply_filters( 'wp_audio_shortcode_class', $atts['class'] )?
Note:
See TracTickets
for help on using tickets.
Yeah, that sounds like a bug.
35367.diff does:
classandstyleattributes get correctly passedclassattribute filters are right before theapply_filterscall