mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Allow filtering of options
git-svn-id: http://svn.automattic.com/wordpress/trunk@2624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
09adfadae0
commit
1f4e4017d2
@ -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