[wp-trac] [WordPress Trac] #35591: Shortcode Attributes Parsing Issue
WordPress Trac
noreply at wordpress.org
Sun Jan 24 09:26:55 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 | Keywords:
Focuses: |
----------------------------+-----------------------------
I'm using the following custom shortcode: [expert_profile mode="desktop"
expert="142"]
And when the attributes are parsed using the following method:
extract( shortcode_atts( array(
'mode' => 'desktop',
'expert' => '0',
'num_to_show' => '25',
'tooltip' => 'on'
), $atts ) );
the "expert" attribute/variable is getting quotes around the end result
after being parsed
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35591>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list