mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user