Make WordPress Core


Ignore:
Timestamp:
07/23/2015 04:11:04 AM (11 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.9 branch.

File:
1 edited

Legend:

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

    r32200 r33377  
    11011101    case 'edit_page':
    11021102        $post = get_post( $args[0] );
    1103         if ( empty( $post ) )
     1103        if ( empty( $post ) ) {
     1104            $caps[] = 'do_not_allow';
    11041105            break;
     1106        }
    11051107
    11061108        if ( 'revision' == $post->post_type ) {
Note: See TracChangeset for help on using the changeset viewer.