Changeset 44150 for trunk/src/wp-includes/post.php
- Timestamp:
- 12/14/2018 02:34:28 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43805-43806
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/post.php
r44146 r44150 256 256 'wp_block', 257 257 array( 258 'labels' => array(258 'labels' => array( 259 259 'name' => __( 'Blocks' ), 260 260 'singular_name' => __( 'Block' ), 261 261 'search_items' => __( 'Search Blocks' ), 262 262 ), 263 'public' => false, 264 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 265 'show_ui' => true, 266 'show_in_menu' => false, 267 'rewrite' => false, 268 'capability_type' => 'block', 269 'capabilities' => array( 263 'public' => false, 264 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 265 'show_ui' => true, 266 'show_in_menu' => false, 267 'rewrite' => false, 268 'show_in_rest' => true, 269 'rest_base' => 'blocks', 270 'rest_controller_class' => 'WP_REST_Blocks_Controller', 271 'capability_type' => 'block', 272 'capabilities' => array( 270 273 // You need to be able to edit posts, in order to read blocks in their raw form. 271 274 'read' => 'edit_posts', … … 277 280 'delete_others_posts' => 'delete_others_posts', 278 281 ), 279 'map_meta_cap' => true,280 'supports' => array(282 'map_meta_cap' => true, 283 'supports' => array( 281 284 'title', 282 285 'editor',
Note: See TracChangeset
for help on using the changeset viewer.