WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 06:21:34 AM (11 years ago)
Author:
nacin
Message:

Don't check post_type_supports in map_meta_cap. see #14122.

File:
1 edited

Legend:

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

    r16400 r16422  
    10871087
    10881088    if ( ! post_type_supports( $args->name, 'author' ) ) {
    1089         // While these may be checked in core, users/roles shouldn't need to be granted these.
     1089        // While these may be checked in core, users/roles shouldn't need to be
     1090        // granted these by default if the post type doesn't support authors.
    10901091        $default_capabilities['edit_others_posts']   = $default_capabilities['edit_posts'];
    10911092        if ( $args->map_meta_cap )
Note: See TracChangeset for help on using the changeset viewer.