Allow filtering of options
git-svn-id: https://develop.svn.wordpress.org/trunk@2624 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a2fa5d6a70
commit
5a7601b50c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user