Opened 16 years ago
Closed 16 years ago
#14220 closed defect (bug) (invalid)
can't specify theme option values containing 'quotes'
| Reported by: | slambert | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
I have a theme with options so users can select fonts. I started to add font stacks that had 2+ word names, like "Times New Roman" and these need to be wrapped in quotes. When selected, they work - the fonts change. The problem is, they don't show as selected in the pull down list when the page refreshes. Without quotes, they do.
info: the comparison function for seeing if a value is currently selected is probably not evaluating quotes correctly
+ this works for both single & double quotes contained inside strings written w/ either single or double quotes
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I'm thinking you're not escaping properly. If you escape, keep in mind you'll still need to compare the unescaped value.
Try the support forums: http://wordpress.org/support/