[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
Wed Oct 14 16:53:37 UTC 2015


#34290: Not possible to have a percent symbol contained in the default value of a
theme_mod
--------------------------+-----------------------------------------
 Reporter:  kuus          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by moonomo):

 Just a note, I had to use `option` instead of `theme_mod` due to this for
 a particular setting. My use case was to introduce some predefined macro
 for user to input for Footer String i.e 'Copyright © %CUR_YEAR%.'.
 Although, it could have #CUR_YEAR# or something else, `theme_mod` went
 crazy for the % without saying anything about it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34290#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list