equal
deleted
inserted
replaced
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> — 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> — 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> — 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> — 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> — 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> — 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> — 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> — 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> — 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' ), |