Make WordPress Core

Ticket #21386: 21386.diff

File 21386.diff, 706 bytes (added by markoheijnen, 10 years ago)
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    811811                        '_builtin' => (bool) $post_type->_builtin,
    812812                        'has_archive' => (bool) $post_type->has_archive,
    813813                        'supports' => get_all_post_type_supports( $post_type->name ),
     814                        'user_can_create' => current_user_can( $post_type->cap->create_posts ),
     815                        'user_can_edit' => current_user_can( $post_type->cap->edit_posts ),
     816                        'user_can_publish' => current_user_can( $post_type->cap->publish_posts ),
    814817                );
    815818
    816819                if ( in_array( 'labels', $fields ) ) {