Provide no-customize fallback to the welcome screen. Use the customize overlay rather than a page reload. see #21368.

git-svn-id: https://develop.svn.wordpress.org/trunk@22089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-10-01 14:58:05 +00:00
parent 51905ec6c7
commit 6467281a2b
2 changed files with 9 additions and 4 deletions

View File

@@ -17,8 +17,12 @@ require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
wp_dashboard_setup();
wp_enqueue_script( 'dashboard' );
wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'media-upload' );
if ( current_user_can( 'edit_theme_options' ) )
wp_enqueue_script( 'customize-loader' );
if ( current_user_can( 'install_plugins' ) )
wp_enqueue_script( 'plugin-install' );
if ( current_user_can( 'upload_files' ) )
wp_enqueue_script( 'media-upload' );
add_thickbox();
if ( wp_is_mobile() )