From 5a7601b50c9547d0eadffe4e4847ec4b0f4bc4db Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 10 Jun 2005 08:51:40 +0000 Subject: [PATCH] Allow filtering of options git-svn-id: https://develop.svn.wordpress.org/trunk@2624 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/options.php b/wp-admin/options.php index 5932edaaa3..c6158d38b3 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -48,6 +48,7 @@ case 'update': // Options that if not there have 0 value but need to be something like "closed" $nonbools = array('default_ping_status', 'default_comment_status'); if ($options) { + $options = apply_filters( 'options_to_update' , $options ); foreach ($options as $option) { // should we even bother checking? if ($user_level >= $option->option_admin_level) {