Changeset 6262 for sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php
- Timestamp:
- 12/13/2017 07:27:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php
r5806 r6262 10 10 */ 11 11 public static function action_init_register_post_type() { 12 register_post_type( 'result', 12 register_post_type( 13 'result', 13 14 array( 14 'labels' => array(15 'name' => __( 'Test Results', 'ptr' ),15 'labels' => array( 16 'name' => __( 'Test Results', 'ptr' ), 16 17 'singular_name' => __( 'Test Result', 'ptr' ), 17 18 ), 18 'public' => true,19 'has_archive' => false,19 'public' => true, 20 'has_archive' => false, 20 21 'show_in_rest' => true, 21 22 'hierarchical' => true, 22 'rewrite' => array(23 'rewrite' => array( 23 24 'slug' => 'test-results', 24 25 ), 25 'supports' => array(26 'supports' => array( 26 27 'title', 27 28 'editor', … … 32 33 'map_meta_cap' => true, 33 34 'capabilities' => array( 34 'edit_post' => 'edit_result',35 'edit_posts' => 'edit_results',36 'edit_others_posts' => 'edit_others_results',37 'publish_posts' => 'publish_results',38 'read_post' => 'read_result',35 'edit_post' => 'edit_result', 36 'edit_posts' => 'edit_results', 37 'edit_others_posts' => 'edit_others_results', 38 'publish_posts' => 'publish_results', 39 'read_post' => 'read_result', 39 40 'read_private_posts' => 'read_private_results', 40 'delete_post' => 'delete_result',41 'delete_post' => 'delete_result', 41 42 ), 42 43 ) … … 49 50 public static function action_init_register_role() { 50 51 if ( ! get_role( 'test-reporter' ) ) { 51 add_role( 'test-reporter', __( 'Test Reporter', 'ptr' ), array( 52 'read' => true, 53 ) ); 52 add_role( 53 'test-reporter', __( 'Test Reporter', 'ptr' ), array( 54 'read' => true, 55 ) 56 ); 54 57 } 55 58 $role = get_role( 'test-reporter' );
Note: See TracChangeset
for help on using the changeset viewer.