[wp-trac] [WordPress Trac] #33259: Inconsistent KSES Shortcode Result
WordPress Trac
noreply at wordpress.org
Tue Aug 4 10:55:55 UTC 2015
#33259: Inconsistent KSES Shortcode Result
--------------------------+------------------------------
Reporter: miqrogroove | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.2.3
Severity: minor | Keywords: needs-unit-tests
Focuses: |
--------------------------+------------------------------
In shortcodes.php,
{{{if ( '' !== $new_attr ) {}}}
should be
{{{if ( '' !== trim( $new_attr ) ) {}}}
Otherwise we get two different results depending on how much whitespace
surrounds an attribute that contained a shortcode.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33259>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list