Exemple #1
0
function mu_options($options)
{
    $removed = array('general' => array('siteurl', 'home', 'admin_email', 'default_role'), 'reading' => array('gzipcompression'), 'writing' => array('ping_sites', 'mailserver_login', 'mailserver_pass', 'default_email_category', 'mailserver_port', 'mailserver_url'));
    $added = array('general' => array('new_admin_email', 'WPLANG', 'language'));
    $options['misc'] = array();
    $options = remove_option_whitelist($removed, $options);
    $options = add_option_whitelist($added, $options);
    return $options;
}
Exemple #2
0
/**
 * {@internal Missing Short Description}}
 *
 * @since 2.7.0
 *
 * @param unknown_type $options
 * @return unknown
 */
function option_update_filter($options)
{
    global $new_whitelist_options;
    if (is_array($new_whitelist_options)) {
        $options = add_option_whitelist($new_whitelist_options, $options);
    }
    return $options;
}
Exemple #3
0
 /**
  * Whitelist the plugin's option(s)
  *
  * @param array $options Array of options
  * @return array The whitelist-amended $options array
  */
 public function whitelist_options($options)
 {
     $added = array($this->admin_options_name => array($this->admin_options_name));
     $options = add_option_whitelist($added, $options);
     return $options;
 }
Exemple #4
0
function incsub_support_whitelist_options($options)
{
    $added = array('incsub_support' => array('incsub_support_menu_name'));
    $options = add_option_whitelist($added, $options);
    return $options;
}
Exemple #5
0
function mu_options($options)
{
    if (defined('POST_BY_EMAIL')) {
        $writing = array('ping_sites');
    } else {
        $writing = array('ping_sites', 'mailserver_login', 'mailserver_pass', 'default_email_category', 'mailserver_port', 'mailserver_url');
    }
    $removed = array('general' => array('siteurl', 'home', 'admin_email', 'users_can_register', 'default_role'), 'reading' => array('gzipcompression'), 'writing' => $writing);
    $added = array('general' => array('new_admin_email', 'WPLANG', 'language'));
    $options['misc'] = array();
    $options = remove_option_whitelist($removed, $options);
    $options = add_option_whitelist($added, $options);
    return $options;
}
Exemple #6
0
function postie_whitelist($options)
{
    $added = array('postie-settings' => array('postie-settings'));
    $options = add_option_whitelist($added, $options);
    return $options;
}
Exemple #7
0
 function whitelist_options($options)
 {
     $added = array('chat' => array('chat_default', 'chat_site'));
     $options = add_option_whitelist($added, $options);
     return $options;
 }