#6436 closed defect (bug) (fixed)
Shortcode attributes passing incorrectly
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.5 | Priority: | highest omg bbq |
| Severity: | blocker | Version: | 2.5 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
In WP2.5 RC3, when adding attributes to a shortcode (such as [gallery columns="3"]) any quotation marks are passed as part of the variable. Therefore, in this example, the $columns variable would contain ”3″ instead of just 3. The same happens when using single quotes.
As far as I can tell, there is no way to use values with spaces, as everything after the space is ignored.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
filter shortcodes before wptexturize