Opened 14 years ago
Closed 14 years ago
#22358 closed enhancement (fixed)
Trim option names before pre filtering them
| Reported by: | evansolomon | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
In get_option() we trim() the option name before looking up its value, but after the pre_option_$option filter runs. I think it makes more sense for the trim() to be done before anything else, and I can't think of a use case for 'foo ' and 'foo' getting different pre_option_$option treatments.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 22633: