Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6436 closed defect (bug) (fixed)

Shortcode attributes passing incorrectly

Reported by: stevish's profile stevish 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)

6436.diff (332 bytes) - added by andy 16 years ago.
filter shortcodes before wptexturize

Download all attachments as: .zip

Change History (5)

#1 @matt
16 years ago

  • Priority changed from high to highest omg bbq
  • Severity changed from major to blocker

@andy
16 years ago

filter shortcodes before wptexturize

#2 @andy
16 years ago

  • Keywords has-patch added; RC3 removed

#3 @matt
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7561]) Shortcode quotes were getting texturized, which can cause a bit of chaos. Fixes #6436.

#4 @markjaquith
16 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.