WordPress.org

Make WordPress Core

Changeset 15909


Ignore:
Timestamp:
10/22/2010 12:25:14 AM (10 years ago)
Author:
nacin
Message:

Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.

File:
1 edited

Legend:

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

    r15904 r15909  
    4949        '_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */
    5050        'capability_type' => 'post',
     51        'map_meta_cap' => true,
    5152        'hierarchical' => false,
    5253        'rewrite' => false,
     
    6566        '_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */
    6667        'capability_type' => 'post',
     68        'map_meta_cap' => true,
    6769        'hierarchical' => false,
    6870        'rewrite' => false,
     
    7779        'public' => false,
    7880        '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
    79         'capability_type' => 'post',
    8081        'hierarchical' => false,
    8182        'rewrite' => false,
Note: See TracChangeset for help on using the changeset viewer.