#6436 closed defect (bug) (fixed)
Shortcode attributes passing incorrectly
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 2.5 |
| Component: | General | Version: | 2.5 |
| Severity: | blocker | Keywords: | has-patch |
| 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)
comment:1
matt
— 5 years ago
- Priority changed from high to highest omg bbq
- Severity changed from major to blocker
comment:4
markjaquith
— 5 years ago
See #6444 -- this changeset causes really funky HTML. wpautop() mangles the heck out of gallery code, and likely will mangle other code.
Note: See
TracTickets for help on using
tickets.
filter shortcodes before wptexturize