[wp-trac] [WordPress Trac] #49421: Cannot use conversion specifications in `theme mod` default values
WordPress Trac
noreply at wordpress.org
Sun Sep 26 03:07:44 UTC 2021
#49421: Cannot use conversion specifications in `theme mod` default values
--------------------------+-----------------------------
Reporter: jqz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by jqz):
Replying to [comment:3 mikeschroder]:
> @SergeyBiryukov, since you committed/worked on the last patch, do you
have any thoughts on the best way forward?
I can't speak for Sergey, but thinking about this, I would suggest the
solution to the original problem (#34290) would be to simply document the
behaviour - i.e. to get a literal `%` in the default value it must be
escaped as `%%`.
I don't see (or indeed think there is) any other solution which retains
support for the URL insertion without a BC. Moreover, removing URL
insertion support would be a BC even for implementations which don't use
it, if they are ('correctly') escaping their `%`s.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49421#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list