~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/index.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
wp_enqueue_script( 'dashboard' );
18
18
if ( current_user_can( 'edit_theme_options' ) )
19
19
        wp_enqueue_script( 'customize-loader' );
20
 
if ( current_user_can( 'install_plugins' ) )
 
20
if ( current_user_can( 'install_plugins' ) ) {
21
21
        wp_enqueue_script( 'plugin-install' );
 
22
        wp_enqueue_script( 'updates' );
 
23
}
22
24
if ( current_user_can( 'upload_files' ) )
23
25
        wp_enqueue_script( 'media-upload' );
24
26
add_thickbox();
29
31
$title = __('Dashboard');
30
32
$parent_file = 'index.php';
31
33
 
32
 
$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>';
 
34
$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 above the screen title.' ) . '</p>';
33
35
 
34
36
// Not using chaining here, so as to be parseable by PHP4.
35
37
$screen = get_current_screen();
69
71
if ( is_blog_admin() && current_user_can( 'edit_posts' ) )
70
72
        $help .= '<p>' . __( "<strong>Quick Draft</strong> &mdash; 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." ) . '</p>';
71
73
if ( ! is_multisite() && current_user_can( 'install_plugins' ) )
72
 
        $help .= '<p>' . __( '<strong>WordPress News</strong> &mdash; Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>, and popular and recent plugins.' ) . '</p>';
 
74
        $help .= '<p>' . sprintf(
 
75
                /* translators: %s: WordPress Planet URL */
 
76
                __( '<strong>WordPress News</strong> &mdash; Latest news from the official WordPress project, the <a href="%s">WordPress Planet</a>, and popular plugins.' ),
 
77
                __( 'https://planet.wordpress.org/' )
 
78
        ) . '</p>';
73
79
else
74
 
        $help .= '<p>' . __( '<strong>WordPress News</strong> &mdash; Latest news from the official WordPress project, the <a href="https://planet.wordpress.org/">WordPress Planet</a>.' ) . '</p>';
 
80
        $help .= '<p>' . sprintf(
 
81
                /* translators: %s: WordPress Planet URL */
 
82
                __( '<strong>WordPress News</strong> &mdash; Latest news from the official WordPress project and the <a href="%s">WordPress Planet</a>.' ),
 
83
                __( 'https://planet.wordpress.org/' )
 
84
        ) . '</p>';
75
85
if ( current_user_can( 'edit_theme_options' ) )
76
86
        $help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
77
87
 
111
121
                /**
112
122
                 * Add content to the welcome panel on the admin dashboard.
113
123
                 *
114
 
                 * To remove the default welcome panel, use {@see remove_action()}:
 
124
                 * To remove the default welcome panel, use remove_action():
115
125
                 *
116
126
                 *     remove_action( 'welcome_panel', 'wp_welcome_panel' );
117
127
                 *