WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/22/2015 04:01:53 AM (4 years ago)
Author:
pento
Message:

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

File:
1 edited

Legend:

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

    r33214 r33357  
    11891189    case 'edit_page':
    11901190        $post = get_post( $args[0] );
    1191         if ( empty( $post ) )
     1191        if ( empty( $post ) ) {
     1192            $caps[] = 'do_not_allow';
    11921193            break;
     1194        }
    11931195
    11941196        if ( 'revision' == $post->post_type ) {
Note: See TracChangeset for help on using the changeset viewer.