Make WordPress Core

Changeset 12945


Ignore:
Timestamp:
02/04/2010 06:19:21 PM (15 years ago)
Author:
ryan
Message:

Fix warnings. see #11644

File:
1 edited

Legend:

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

    r12935 r12945  
    2424            wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") );
    2525
    26         update_site_option( "WPLANG", $_POST['WPLANG'] );
     26        if ( isset($_POST['WPLANG']) )
     27            update_site_option( "WPLANG", $_POST['WPLANG'] );
    2728
    2829        if ( is_email( $_POST['admin_email'] ) )
     
    103104        $options = array( 'registrationnotification', 'registration', 'add_new_users', 'menu_items', 'mu_media_buttons', 'upload_space_check_disabled', 'blog_upload_space', 'upload_filetypes', 'site_name', 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'admin_notice_feed' );
    104105        foreach ( $options as $option_name ) {
     106            if ( ! isset($_POST[ $option_name ]) )
     107                continue;
    105108            $value = stripslashes_deep( $_POST[ $option_name ] );
    106109            update_site_option( $option_name, $value );
Note: See TracChangeset for help on using the changeset viewer.