Make WordPress Core


Ignore:
Timestamp:
10/01/2012 02:58:05 PM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r22018 r22089  
    1818
    1919wp_enqueue_script( 'dashboard' );
    20 wp_enqueue_script( 'plugin-install' );
    21 wp_enqueue_script( 'media-upload' );
     20if ( current_user_can( 'edit_theme_options' ) )
     21    wp_enqueue_script( 'customize-loader' );
     22if ( current_user_can( 'install_plugins' ) )
     23    wp_enqueue_script( 'plugin-install' );
     24if ( current_user_can( 'upload_files' ) )
     25    wp_enqueue_script( 'media-upload' );
    2226add_thickbox();
    2327
Note: See TracChangeset for help on using the changeset viewer.