[wp-trac] [WordPress Trac] #43704: pre_option_{$option} filter is case sensitive although options are not.
WordPress Trac
noreply at wordpress.org
Thu Apr 5 18:38:45 UTC 2018
#43704: pre_option_{$option} filter is case sensitive although options are not.
--------------------------------+-----------------------------
Reporter: programmin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.9.5
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
I noticed the filter "pre_option_{$option}" for myOption wouldn't filter
get_option('MYOption') for example, yet get_option(name) and MySql in
general does not seem to care what case the option is. Perhaps it should
also do pre_option_(strtolower($option)) when necessary?
Was there a reason this particular filter is case-sensitive?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43704>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list