Make WordPress Core


Ignore:
Timestamp:
07/23/2015 04:18:49 AM (10 years ago)
Author:
pento
Message:

Capabilities: When creating an auto-draft, ensure that the current user still has permission to do so.

Merge of [33357] to the 3.8 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8/src/wp-admin/includes/dashboard.php

    r32205 r33378  
    333333function wp_dashboard_quick_press( $error_msg = false ) {
    334334    global $post_ID;
     335
     336    if ( ! current_user_can( 'edit_posts' ) ) {
     337        return;
     338    }
    335339
    336340    /* Check if a new auto-draft (= no new post_ID) is needed or if the old can be used */
Note: See TracChangeset for help on using the changeset viewer.