WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/25/2010 09:33:49 PM (10 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/plugin.php

    r12789 r12825  
    10651065 */
    10661066function add_option_whitelist( $new_options, $options = '' ) {
    1067     if ( $options == '' ) {
     1067    if ( $options == '' )
    10681068        global $whitelist_options;
    1069     } else {
     1069    else
    10701070        $whitelist_options = $options;
    1071     }
    1072     foreach( $new_options as $page => $keys ) {
    1073         foreach( $keys as $key ) {
     1071
     1072    foreach ( $new_options as $page => $keys ) {
     1073        foreach ( $keys as $key ) {
    10741074            if ( !isset($whitelist_options[ $page ]) || !is_array($whitelist_options[ $page ]) ) {
    10751075                $whitelist_options[ $page ] = array();
     
    10821082        }
    10831083    }
     1084
    10841085    return $whitelist_options;
    10851086}
     
    10951096 */
    10961097function remove_option_whitelist( $del_options, $options = '' ) {
    1097     if ( $options == '' ) {
     1098    if ( $options == '' )
    10981099        global $whitelist_options;
    1099     } else {
     1100    else
    11001101        $whitelist_options = $options;
    1101     }
    1102     foreach( $del_options as $page => $keys ) {
    1103         foreach( $keys as $key ) {
     1102
     1103    foreach ( $del_options as $page => $keys ) {
     1104        foreach ( $keys as $key ) {
    11041105            if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) {
    11051106                $pos = array_search( $key, $whitelist_options[ $page ] );
     
    11091110        }
    11101111    }
     1112
    11111113    return $whitelist_options;
    11121114}
Note: See TracChangeset for help on using the changeset viewer.