Changeset 15212 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-support-reps.php
- Timestamp:
- 09/17/2026 04:25:15 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-support-reps.php
r11373 r15212 39 39 'methods' => WP_REST_Server::CREATABLE, 40 40 'callback' => array( $this, 'add_support_rep' ), 41 'permission_callback' => function( $request ) { 42 return current_user_can( 43 'plugin_add_support_rep', 44 Plugin_Directory::get_plugin_post( $request['plugin_slug'] ) 45 ); 46 }, 41 'permission_callback' => array( $this, 'permission_check_action' ), 42 'wporg_capability' => 'plugin_add_support_rep', 43 'wporg_action' => 'add_support_rep', 47 44 'args' => array( 48 45 'plugin_slug' => array( … … 57 54 'methods' => WP_REST_Server::DELETABLE, 58 55 'callback' => array( $this, 'remove_support_rep' ), 59 'permission_callback' => function( $request ) { 60 return current_user_can( 61 'plugin_remove_support_rep', 62 Plugin_Directory::get_plugin_post( $request['plugin_slug'] ) 63 ); 64 }, 56 'permission_callback' => array( $this, 'permission_check_action' ), 57 'wporg_capability' => 'plugin_remove_support_rep', 58 'wporg_action' => 'remove_support_rep', 65 59 'args' => array( 66 60 'plugin_slug' => array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)