[wp-trac] [WordPress Trac] #35591: Shortcode Attributes Parsing Issue
WordPress Trac
noreply at wordpress.org
Mon Jan 25 17:39:29 UTC 2016
#35591: Shortcode Attributes Parsing Issue
-------------------------------+------------------------------
Reporter: markclotfelter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.4.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by markclotfelter):
var_dump( shortcode_atts( array(
'mode' => 'desktop',
'expert' => '0',
'num_to_show' => '25',
'tooltip' => 'on'
), $atts ) );
PRINT OUTS...
array(4) { ["mode"]=> string(7) "desktop" ["expert"]=> string(3) "146"
["num_to_show"]=> string(2) "25" ["tooltip"]=> string(2) "on" }
Nothing looks wrong there to me... but, the strings that i get are
different; as far as how well each one is stripped of quotes.
I'll send you printouts of each variable after extracting the variables.
(as i type this, it occurs to me that the problem might just be in the
"extract" method)
This problem didn't appear until the update to 4.#
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35591#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list