Make WordPress Core


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

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

Partial merge of [33357] to the 3.7 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7/src/wp-includes/capabilities.php

    r32202 r33379  
    10741074    case 'edit_page':
    10751075        $post = get_post( $args[0] );
    1076         if ( empty( $post ) )
     1076        if ( empty( $post ) ) {
     1077            $caps[] = 'do_not_allow';
    10771078            break;
     1079        }
    10781080
    10791081        if ( 'revision' == $post->post_type ) {
Note: See TracChangeset for help on using the changeset viewer.