Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#18737 closed defect (bug) (fixed)

Always run the sanitize_option_* filter

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.2.1
Component: Validation Keywords:
Focuses: Cc:

Description (last modified by ryan)

The sanitize_option_* filter triggered in sanitize_option() does not run for core options that are part of the switch statement. When options are added to this switch they are no longer run through the filter. This can create plugin back compat issues. Let's run that filter for all options.

Change History (2)

#1 @ryan
12 years ago

  • Description modified (diff)

#2 @ryan
12 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [18738]:

Run the sanitize_option_* filter for all options in sanitize_option(). Add some sanity checks for the permalink options while in there. fixes #18737

Note: See TracTickets for help on using tickets.