wp/wp-admin/index.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    70 	)
    70 	)
    71 );
    71 );
    72 
    72 
    73 $help = '<p>' . __( 'The boxes on your Dashboard screen are:' ) . '</p>';
    73 $help = '<p>' . __( 'The boxes on your Dashboard screen are:' ) . '</p>';
    74 
    74 
       
    75 if ( current_user_can( 'edit_theme_options' ) ) {
       
    76 	$help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
       
    77 }
       
    78 
       
    79 if ( current_user_can( 'view_site_health_checks' ) ) {
       
    80 	$help .= '<p>' . __( '<strong>Site Health Status</strong> &mdash; Informs you of any potential issues that should be addressed to improve the performance or security of your website.' ) . '</p>';
       
    81 }
       
    82 
    75 if ( current_user_can( 'edit_posts' ) ) {
    83 if ( current_user_can( 'edit_posts' ) ) {
    76 	$help .= '<p>' . __( '<strong>At A Glance</strong> &mdash; Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
    84 	$help .= '<p>' . __( '<strong>At a Glance</strong> &mdash; Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
    77 }
    85 }
    78 
    86 
    79 $help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
    87 $help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
    80 
    88 
    81 if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
    89 if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
    85 $help .= '<p>' . sprintf(
    93 $help .= '<p>' . sprintf(
    86 	/* translators: %s: WordPress Planet URL. */
    94 	/* translators: %s: WordPress Planet URL. */
    87 	__( '<strong>WordPress Events and News</strong> &mdash; Upcoming events near you as well as the latest news from the official WordPress project and the <a href="%s">WordPress Planet</a>.' ),
    95 	__( '<strong>WordPress Events and News</strong> &mdash; Upcoming events near you as well as the latest news from the official WordPress project and the <a href="%s">WordPress Planet</a>.' ),
    88 	__( 'https://planet.wordpress.org/' )
    96 	__( 'https://planet.wordpress.org/' )
    89 ) . '</p>';
    97 ) . '</p>';
    90 
       
    91 if ( current_user_can( 'edit_theme_options' ) ) {
       
    92 	$help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
       
    93 }
       
    94 
    98 
    95 $screen->add_help_tab(
    99 $screen->add_help_tab(
    96 	array(
   100 	array(
    97 		'id'      => 'help-content',
   101 		'id'      => 'help-content',
    98 		'title'   => __( 'Content' ),
   102 		'title'   => __( 'Content' ),