From 084b48e1ba31734e1d4ddabd9217688f17465583 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Mar 2018 03:32:30 +0000 Subject: [PATCH] Help/About: Adjust capability checks formatting in help text on Dashboard screen for readability and consistency with similar checks in other files. See #43472. Built from https://develop.svn.wordpress.org/trunk@42783 git-svn-id: http://core.svn.wordpress.org/trunk@42613 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/index.php | 7 ++++++- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 58f2bf21df..368dd7dd59 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -71,18 +71,23 @@ $screen->add_help_tab( ); $help = '

' . __( 'The boxes on your Dashboard screen are:' ) . '

'; + if ( current_user_can( 'edit_posts' ) ) { $help .= '

' . __( 'At A Glance — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '

'; } - $help .= '

' . __( 'Activity — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '

'; + +$help .= '

' . __( 'Activity — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '

'; + 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 3 most recent draft posts you've started." ) . '

'; } + $help .= '

' . sprintf( /* translators: %s: WordPress Planet URL */ __( 'WordPress Events and News — Upcoming events near you as well as the 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.' ) . '

'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 31deb45819..4fca3017df 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42782'; +$wp_version = '5.0-alpha-42783'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.