예제 #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;
}
예제 #2
0
파일: plugin.php 프로젝트: fka2004/webkit
/**
 * {@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;
}
예제 #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;
 }
예제 #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;
}
예제 #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;
}
예제 #6
0
파일: postie.php 프로젝트: donwea/nhap.org
function postie_whitelist($options)
{
    $added = array('postie-settings' => array('postie-settings'));
    $options = add_option_whitelist($added, $options);
    return $options;
}
예제 #7
0
 function whitelist_options($options)
 {
     $added = array('chat' => array('chat_default', 'chat_site'));
     $options = add_option_whitelist($added, $options);
     return $options;
 }