[wp-trac] [WordPress Trac] #34290: Not possible to have a percent symbol contained in the default value of a theme_mod
WordPress Trac
noreply at wordpress.org
Sat Apr 21 11:25:43 UTC 2018
#34290: Not possible to have a percent symbol contained in the default value of a
theme_mod
--------------------------+-----------------------------------------
Reporter: kuus | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript, administration
--------------------------+-----------------------------------------
Changes (by SergeyBiryukov):
* status: closed => reopened
* resolution: invalid =>
* milestone: => Awaiting Review
Comment:
Apparently still an issue, per #43824.
Replying to [comment:4 westonruter]:
> The only alternative I can think of is for the Customizer to explicitly
`str_replace( '%', '%%', $setting->default)` when it is accessing a theme
mod's default value, but that could have other unintended consequences.
Related: [24630], #21241.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34290#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list