WordPress.org

Make WordPress Core

Changeset 16825


Ignore:
Timestamp:
12/08/2010 10:07:29 PM (9 years ago)
Author:
nacin
Message:

Remove post_type_supports check from register_post_type caps all together. fixes #14122.

File:
1 edited

Legend:

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

    r16820 r16825  
    10951095    }
    10961096
    1097     if ( ! post_type_supports( $args->name, 'author' ) ) {
    1098         // While these may be checked in core, users/roles shouldn't need to be
    1099         // granted these by default if the post type doesn't support authors.
    1100         $default_capabilities['edit_others_posts']   = $default_capabilities['edit_posts'];
    1101         if ( $args->map_meta_cap )
    1102             $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts'];
    1103     }
    1104 
    11051097    $capabilities = array_merge( $default_capabilities, $args->capabilities );
    11061098
Note: See TracChangeset for help on using the changeset viewer.