#37493 closed defect (bug) (worksforme)
shortcodes of the format [shortcode value] no longer recognized
| Reported by: | WayneAllen | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Shortcodes | Version: | 4.5.3 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
At some point in the shortcode rewrite we lost a feature.
Previously a shortcode of the form [shortcode value] would work. As of 4.5.3 it doesn't (I didn't work backwards to see where it broke).
At line 213 in shortcodes.php the statement
preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
This returns the array ['shortcode value'] rather than ['shortcode'] and therefore fails the test looking for known shortcodes.
Change History (3)
#2
@
10 years ago
- Resolution → invalid
- Status new → closed
As the author of the Postie plugin I have a little different workflow than typical.
Thanks for the pointer. Looks like gmail is encoding the space strangely. All other spaces are encoded normally, but spaces inside the shortcodes are encoded (quoted-printable) as =C2=A0 (non-breaking).
Clearly not a WP issue.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This should work, as
\x20is the space character and the match cannot include it.Is the space character actually a non-breaking space instead perhaps?