Making WordPress.org


Ignore:
Timestamp:
04/28/2026 04:18:45 PM (5 months ago)
Author:
coffee2code
Message:

PHPUnit Test Reporter: Sync with git WordPress/phpunit-test-reporter@fa1fa7b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php

    r14828 r14850  
    5555                                'show_in_rest'       => true,
    5656                                'hierarchical'       => false,
     57                                'map_meta_cap'       => true,
     58                                'capabilities'       => array(
     59                                        'edit_post'          => 'edit_rtc_perf_result',
     60                                        'edit_posts'         => 'edit_rtc_perf_results',
     61                                        'edit_others_posts'  => 'edit_others_rtc_perf_results',
     62                                        'publish_posts'      => 'publish_rtc_perf_results',
     63                                        'read_post'          => 'read_rtc_perf_result',
     64                                        'read_private_posts' => 'read_private_rtc_perf_results',
     65                                        'delete_post'        => 'delete_rtc_perf_result',
     66                                ),
    5767                                'supports'           => array(
    5868                                        'title',
    … …  
    136146                        $role->add_cap( 'edit_results' );
    137147                        $role->add_cap( 'publish_results' );
     148                        $role->add_cap( 'edit_rtc_perf_results' );
     149                        $role->add_cap( 'publish_rtc_perf_results' );
    138150                }
    139151                $role = get_role( 'administrator' );
    … …  
    143155                        $role->add_cap( 'publish_results' );
    144156                        $role->add_cap( 'read_private_results' );
     157                        $role->add_cap( 'edit_rtc_perf_results' );
     158                        $role->add_cap( 'edit_others_rtc_perf_results' );
     159                        $role->add_cap( 'publish_rtc_perf_results' );
     160                        $role->add_cap( 'read_private_rtc_perf_results' );
    145161                }
    146162        }
Note: See TracChangeset for help on using the changeset viewer.