Make WordPress Core


Ignore:
Timestamp:
01/25/2010 09:33:49 PM (15 years ago)
Author:
ryan
Message:

Deprecate mu_options. Integrate directly into options.php. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r12824 r12825  
    562562}
    563563add_action( 'admin_page_access_denied', 'redirect_user_to_blog', 99 );
    564 
    565 function mu_options( $options ) {
    566     if ( defined( 'POST_BY_EMAIL' ) ) {
    567         $writing = array( 'ping_sites' );
    568     } else {
    569         $writing = array( 'ping_sites', 'mailserver_login', 'mailserver_pass', 'default_email_category', 'mailserver_port', 'mailserver_url' );
    570     }
    571     $removed = array(
    572         'general' => array( 'siteurl', 'home', 'admin_email', 'users_can_register', 'default_role' ),
    573         'reading' => array( 'gzipcompression' ),
    574         'writing' => $writing,
    575     );
    576 
    577     $added = array( 'general' => array( 'new_admin_email', 'WPLANG', 'language' ) );
    578 
    579     $options[ 'misc' ] = array();
    580 
    581     $options = remove_option_whitelist( $removed, $options );
    582     $options = add_option_whitelist( $added, $options );
    583 
    584     return $options;
    585 }
    586 add_filter( 'whitelist_options', 'mu_options' );
    587564
    588565function check_import_new_users( $permission ) {
Note: See TracChangeset for help on using the changeset viewer.