Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r14924 r15032  
    300300    $updated = $skipped = $locked = array();
    301301    foreach ( $post_IDs as $post_ID ) {
    302 
    303         if ( isset($children) && in_array($post_ID, $children) ) {
     302        $post_type_object = get_post_type_object( get_post_type( $post_ID ) );
     303
     304        if ( !isset( $post_type_object ) || ( isset($children) && in_array($post_ID, $children) ) || !current_user_can( $post_type_object->cap->edit_post, $post_ID ) ) {
    304305            $skipped[] = $post_ID;
    305306            continue;
Note: See TracChangeset for help on using the changeset viewer.