WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/22/2015 04:05:17 AM (5 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 4.2 branch.

File:
1 edited

Legend:

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

    r32173 r33358  
    11441144    case 'edit_page':
    11451145        $post = get_post( $args[0] );
    1146         if ( empty( $post ) )
     1146        if ( empty( $post ) ) {
     1147            $caps[] = 'do_not_allow';
    11471148            break;
     1149        }
    11481150
    11491151        if ( 'revision' == $post->post_type ) {
Note: See TracChangeset for help on using the changeset viewer.