Make WordPress Core

Ticket #34987: 34987.4-4-branch.diff

File 34987.4-4-branch.diff, 1.7 KB (added by dd32, 9 years ago)
  • src/wp-admin/index.php

    require_once(ABSPATH . 'wp-admin/include 
    1414
    1515wp_dashboard_setup();
    1616
    1717wp_enqueue_script( 'dashboard' );
    1818if ( current_user_can( 'edit_theme_options' ) )
    1919        wp_enqueue_script( 'customize-loader' );
    2020if ( current_user_can( 'install_plugins' ) )
    2121        wp_enqueue_script( 'plugin-install' );
    2222if ( current_user_can( 'upload_files' ) )
    2323        wp_enqueue_script( 'media-upload' );
    2424add_thickbox();
    2525
    2626if ( wp_is_mobile() )
    2727        wp_enqueue_script( 'jquery-touch-punch' );
    2828
     29/**
     30 * @ignore
     31 */
     32function _wp_441_display_configure_links_css() {
     33        echo '<style type="text/css">
     34                .postbox .button-link .edit-box { display: none; }
     35                .wp-admin .edit-box { display: block; opacity: 0; }
     36                .hndle:hover .edit-box, .edit-box:focus { opacity: 1; }
     37                #dashboard-widgets h2 a { text-decoration: underline; }
     38                #dashboard-widgets .hndle .postbox-title-action { float: right; line-height: 1.2; }
     39        </style>';
     40}
     41add_action( 'admin_print_styles', '_wp_441_display_configure_links_css' );
     42
    2943$title = __('Dashboard');
    3044$parent_file = 'index.php';
    3145
    3246$help = '<p>' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '</p>';
    3347
    3448// Not using chaining here, so as to be parseable by PHP4.
    3549$screen = get_current_screen();
    3650
    3751$screen->add_help_tab( array(
    3852        'id'      => 'overview',
    3953        'title'   => __( 'Overview' ),
    4054        'content' => $help,
    4155) );
    4256
    4357// Help tabs