Ticket #5209 (closed enhancement: fixed)

Opened 1 year ago

Last modified 9 months ago

Add an action hook and sanitize_option filter to add_option_{option_name}

Reported by: johnbillion Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version: 2.3
Severity: minor Keywords: add_option, sanitize_option, hook, filter, has-patch
Cc:

Description

In the spirit of #5208, I propose adding a filter and an action to the add_option function, as it currently has neither.

Attachments

5209.diff (0.6 kB) - added by johnbillion on 10/15/07 23:55:33.
Introducing add_option_{option_name} and pre_add_option_{option_name}
5209.2.diff (0.8 kB) - added by johnbillion on 10/16/07 22:48:40.
Add sanitize_option to add_option

Change History

10/15/07 23:55:33 changed by johnbillion

  • attachment 5209.diff added.

Introducing add_option_{option_name} and pre_add_option_{option_name}

10/15/07 23:56:10 changed by johnbillion

  • keywords changed from add_option, pre_add_option, hook, filter to add_option, pre_add_option, hook, filter, has-patch.

Patch

10/16/07 01:26:18 changed by foolswisdom

  • milestone changed from 2.3.1 to 2.4.

10/16/07 22:48:40 changed by johnbillion

  • attachment 5209.2.diff added.

Add sanitize_option to add_option

10/16/07 22:49:38 changed by johnbillion

  • keywords changed from add_option, pre_add_option, hook, filter, has-patch to add_option, sanitize_option, hook, filter, has-patch.
  • summary changed from Two more new hooks: add_option_{option_name} and pre_add_option_{option_name} to Add an action hook and sanitize_option filter to add_option_{option_name}.

In light of westi's comment over at #5208, I'm changing this ticket to propose adding the sanitize_option filter to add_option_{option_name}, in addition to an action hook.

See new patch.

Anyone see any problems with adding sanitize_option to the add_option function?

03/19/08 23:46:11 changed by ffemtcj

  • milestone changed from 2.5 to 2.6.

03/21/08 08:56:29 changed by westi

  • status changed from new to closed.
  • resolution set to fixed.

(In [7445]) Add sanitization of option values to add_option. Fixes #5209 props johnbillion.

03/21/08 08:56:40 changed by westi

  • milestone changed from 2.6 to 2.5.