X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..refs/heads/pristine:/wp-admin/index.php diff --git a/wp-admin/index.php b/wp-admin/index.php index abf1ac51..d2d7ec88 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -17,8 +17,10 @@ wp_dashboard_setup(); wp_enqueue_script( 'dashboard' ); if ( current_user_can( 'edit_theme_options' ) ) wp_enqueue_script( 'customize-loader' ); -if ( current_user_can( 'install_plugins' ) ) +if ( current_user_can( 'install_plugins' ) ) { wp_enqueue_script( 'plugin-install' ); + wp_enqueue_script( 'updates' ); +} if ( current_user_can( 'upload_files' ) ) wp_enqueue_script( 'media-upload' ); add_thickbox(); @@ -29,9 +31,8 @@ if ( wp_is_mobile() ) $title = __('Dashboard'); $parent_file = 'index.php'; -$help = '

' . __( '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.' ) . '

'; +$help = '

' . __( '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 above the screen title.' ) . '

'; -// Not using chaining here, so as to be parseable by PHP4. $screen = get_current_screen(); $screen->add_help_tab( array( @@ -69,9 +70,17 @@ if ( current_user_can( 'edit_posts' ) ) if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) $help .= '

' . __( "Quick Draft — Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started." ) . '

'; if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) - $help .= '

' . __( 'WordPress News — Latest news from the official WordPress project, the WordPress Planet, and popular and recent plugins.' ) . '

'; + $help .= '

' . sprintf( + /* translators: %s: WordPress Planet URL */ + __( 'WordPress News — Latest news from the official WordPress project, the WordPress Planet, and popular plugins.' ), + __( 'https://planet.wordpress.org/' ) + ) . '

'; else - $help .= '

' . __( 'WordPress News — Latest news from the official WordPress project, the WordPress Planet.' ) . '

'; + $help .= '

' . sprintf( + /* translators: %s: WordPress Planet URL */ + __( 'WordPress News — Latest news from the official WordPress project and the WordPress Planet.' ), + __( 'https://planet.wordpress.org/' ) + ) . '

'; if ( current_user_can( 'edit_theme_options' ) ) $help .= '

' . __( 'Welcome — Shows links for some of the most common tasks when setting up a new site.' ) . '

'; @@ -85,8 +94,8 @@ unset( $help ); $screen->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Dashboard' ) . '

' . - '

' . __( 'Support Forums' ) . '

' + '

' . __( 'Documentation on Dashboard' ) . '

' . + '

' . __( 'Support Forums' ) . '

' ); include( ABSPATH . 'wp-admin/admin-header.php' ); @@ -106,12 +115,12 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
- +