mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix warnings. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da7fe139e6
commit
b595595a43
@ -23,6 +23,7 @@ switch ( $_GET['action'] ) {
|
|||||||
if ( empty( $_POST ) )
|
if ( empty( $_POST ) )
|
||||||
wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") );
|
wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") );
|
||||||
|
|
||||||
|
if ( isset($_POST['WPLANG']) )
|
||||||
update_site_option( "WPLANG", $_POST['WPLANG'] );
|
update_site_option( "WPLANG", $_POST['WPLANG'] );
|
||||||
|
|
||||||
if ( is_email( $_POST['admin_email'] ) )
|
if ( is_email( $_POST['admin_email'] ) )
|
||||||
@ -102,6 +103,8 @@ switch ( $_GET['action'] ) {
|
|||||||
update_site_option( "dashboard_blog", $dashboard_blog_id );
|
update_site_option( "dashboard_blog", $dashboard_blog_id );
|
||||||
$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' );
|
$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' );
|
||||||
foreach ( $options as $option_name ) {
|
foreach ( $options as $option_name ) {
|
||||||
|
if ( ! isset($_POST[ $option_name ]) )
|
||||||
|
continue;
|
||||||
$value = stripslashes_deep( $_POST[ $option_name ] );
|
$value = stripslashes_deep( $_POST[ $option_name ] );
|
||||||
update_site_option( $option_name, $value );
|
update_site_option( $option_name, $value );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user