]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/dashboard.php
WordPress 4.2.3
[autoinstalls/wordpress.git] / wp-admin / includes / dashboard.php
index 7179aa3480c7f51fd2711daa48c1b2537ab2c6a6..b7dda1323dc7c59814292369e57802737c0a8d31 100644 (file)
@@ -418,6 +418,10 @@ function wp_network_dashboard_right_now() {
 function wp_dashboard_quick_press( $error_msg = false ) {
        global $post_ID;
 
+       if ( ! current_user_can( 'edit_posts' ) ) {
+               return;
+       }
+
        /* Check if a new auto-draft (= no new post_ID) is needed or if the old can be used */
        $last_post_id = (int) get_user_option( 'dashboard_quick_press_last_post_id' ); // Get the last post_ID
        if ( $last_post_id ) {