Beispiel #1
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;
}
Beispiel #2
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;
}
Beispiel #3
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'), 'misc' => array('hack_file', 'use_linksupdate', 'uploads_use_yearmonth_folders', 'upload_path'));
    $added = array('general' => array('new_admin_email', 'WPLANG', 'language'));
    $options = remove_option_whitelist($removed, $options);
    $options = add_option_whitelist($added, $options);
    return $options;
}