Making WordPress.org


Ignore:
Timestamp:
03/15/2016 08:02:51 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Allow plugin committers to be added and removed.

Still needs cap checks.
Uses wpList to seemlessly add/remove committers. Works similar to the
category meta box.

See #1571.

File:
1 edited

Legend:

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

    r2735 r2752  
    1111
    1212    /**
     13     * Filters the postbox classes for custom comment meta boxes.
     14     *
     15     * @param array $classes An array of postbox classes.
     16     * @return array
     17     */
     18    public static function postbox_classes( $classes ) {
     19        $classes[] = 'comments-meta-box';
     20
     21        return array_filter( $classes );
     22    }
     23
     24    /**
    1325     * Displays comment box for internal notes.
    1426     */
    15     static function display() {
     27    public static function display() {
    1628        $wp_list_table = new Plugin_Comments_List_Table( array(
    1729            'comment_type' => 'internal-note',
Note: See TracChangeset for help on using the changeset viewer.