Index: wp-admin/includes/dashboard.php =================================================================== --- wp-admin/includes/dashboard.php (revision 19414) +++ wp-admin/includes/dashboard.php (working copy) @@ -138,6 +138,11 @@ exit; } + if ( isset( $_GET['action'] ) && 'dismiss-welcome-panel' == $_GET['action'] ) { + if ( current_user_can( 'edit_theme_options' ) ) + update_user_meta( get_current_user_id(), 'show_welcome_panel', 0 ); + } + if ( $update ) update_option( 'dashboard_widget_options', $widget_options ); @@ -1283,7 +1288,7 @@ ?>
-Dismiss this message.' ); ?>
+Dismiss this message.' ), esc_url( add_query_arg( 'action', 'dismiss-welcome-panel', admin_url( 'index.php' ) ) ) ); ?>