Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26084 closed defect (bug) (duplicate)

register_setting() calls filter: sanitize_option_{$option_name}, with wrong $accepted_args value.

Reported by: kingyes's profile KingYes Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.7
Component: Formatting Keywords:
Focuses: Cc:

Description

Hi guys.

When we use with register_setting() function, it's call to filter sanitize_option_{$option_name} with one $accepted_args.

I just think the filter "sanitize_option_{$option_name}", need to change the $accepted_args var to "2".

Because the apply_filters call with two params.

$value = apply_filters("sanitize_option_{$option}", $value, $option);

Attachments (1)

ticket-26084.diff (785 bytes) - added by KingYes 11 years ago.
ticket-26084.diff

Download all attachments as: .zip

Change History (3)

@KingYes
11 years ago

ticket-26084.diff

#1 @nacin
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #15335.

#2 @SergeyBiryukov
11 years ago

  • Version changed from trunk to 3.7
Note: See TracTickets for help on using tickets.