diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 0ecf0a23f0..40035f8ba3 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -487,7 +487,7 @@ function wp_dashboard_quick_press( $error_msg = false ) { $post = get_default_post_to_edit( 'post' , true); $user_id = get_current_user_id(); // Don't create an option if this is a super admin who does not belong to this site. - if ( ! ( is_super_admin( $user_id ) && ! in_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ) ) ) ) + if ( in_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ) ) ) update_user_option( $user_id, 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID } diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index fa935cec85..67df23f9db 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -808,7 +808,7 @@ function wp_user_settings() { return; } - if ( is_super_admin() && ! is_user_member_of_blog() ) { + if ( ! is_user_member_of_blog() ) { return; } @@ -972,7 +972,7 @@ function wp_set_all_user_settings( $user_settings ) { return false; } - if ( is_super_admin() && ! is_user_member_of_blog() ) { + if ( ! is_user_member_of_blog() ) { return; }