Ticket #16714: 16714.12.diff

File 16714.12.diff, 594 bytes (added by nacin, 6 months ago)
Line 
1Index: wp-includes/post.php
2===================================================================
3--- wp-includes/post.php        (revision 22893)
4+++ wp-includes/post.php        (working copy)
5@@ -63,6 +63,9 @@
6                '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
7                '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
8                'capability_type' => 'post',
9+               'capabilities' => array(
10+                       'create_posts' => 'upload_files',
11+               ),
12                'map_meta_cap' => true,
13                'hierarchical' => false,
14                'rewrite' => false,