Making WordPress.org


Ignore:
Timestamp:
09/03/2017 09:43:53 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Introduce UI for managing plugin support reps.

Support representatives can mark forum topics as resolved or sticky (same as plugin authors and contributors), but don't have commit access to the plugin.

See #3029, #2699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r5846 r5867  
    261261                ) );
    262262
     263                register_taxonomy( 'plugin_support_reps', array( 'plugin', 'force-count-to-include-all-post_status' ), array(
     264                        'hierarchical'      => false,
     265                        'query_var'         => 'plugin_support_rep',
     266                        'rewrite'           => false,
     267                        'labels'            => array(
     268                                'name' => __( 'Support Reps', 'wporg-plugins' ),
     269                                'singular_name' => __( 'Support Rep', 'wporg-plugins' ),
     270                        ),
     271                        'public'            => true,
     272                        'show_ui'           => true,
     273                        'show_admin_column' => true,
     274                        'capabilities'      => array(
     275                                'assign_terms' => 'do_not_allow',
     276                        ),
     277                ) );
     278
    263279                register_taxonomy( 'plugin_tags', array( 'plugin', 'force-count-to-include-all-post_status' ), array(
    264280                        'hierarchical'      => false,
    … …  
    555571                register_widget( __NAMESPACE__ . '\Widgets\Committers'    );
    556572                register_widget( __NAMESPACE__ . '\Widgets\Contributors'  );
     573                register_widget( __NAMESPACE__ . '\Widgets\Support_Reps'  );
    557574        }
    558575
Note: See TracChangeset for help on using the changeset viewer.