Making WordPress.org


Ignore:
Timestamp:
11/21/2016 01:38:13 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Reviewer admin UX tweaks

  • Rename the menu from 'My Plugins' to 'Repo Plugins' to match theme directory
  • Extend the 'slug' and 'author' inputs to be longer, accomodating longer slugs
  • Add the 'submitter' column to the list view (post_author)
  • Add the taxonomies columns to the list view (committer, contributors, tags

Plugin reviewers will most likely need to remove some of the columns through Screen Options to make the page usable, we can also remove some of the columns if they're not likely to be used.

See #2249.

File:
1 edited

Legend:

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

    r4372 r4383  
    8888        register_post_type( 'plugin', array(
    8989            'labels'       => array(
    90                 'name'               => __( 'Plugins',                   'wporg-plugins' ),
    91                 'singular_name'      => __( 'Plugin',                    'wporg-plugins' ),
    92                 'menu_name'          => __( 'My Plugins',                'wporg-plugins' ),
     90                'name'               => __( 'Repo Plugins',              'wporg-plugins' ),
     91                'singular_name'      => __( 'Repo Plugin',               'wporg-plugins' ),
     92                'menu_name'          => __( 'Repo Plugins',              'wporg-plugins' ),
    9393                'add_new'            => __( 'Add New',                   'wporg-plugins' ),
    9494                'add_new_item'       => __( 'Add New Plugin',            'wporg-plugins' ),
     
    126126            'rewrite'           => false,
    127127            'public'            => true,
    128             'show_ui'           => current_user_can( 'plugin_set_section' ),
    129             'show_admin_column' => current_user_can( 'plugin_set_section' ),
     128            'show_ui'           => true,
     129            'show_admin_column' => false,
    130130            'capabilities'      => array(
    131131                'assign_terms' => 'plugin_set_section',
     
    156156            'public'            => true,
    157157            'show_ui'           => true,
    158             'show_admin_column' => true,
     158            'show_admin_column' => false,
    159159            'capabilities'      => array(
    160160                'assign_terms' => 'plugin_set_category',
     
    170170            ),
    171171            'public'            => true,
    172             'show_ui'           => true,
     172            'show_ui'           => false,
    173173            'show_admin_column' => false,
    174174            'meta_box_cb'       => false,
     
    186186            ),
    187187            'public'            => true,
    188             'show_ui'           => true,
     188            'show_ui'           => false,
    189189            'show_admin_column' => false,
    190190            'meta_box_cb'       => false,
     
    204204            'public'            => true,
    205205            'show_ui'           => true,
    206             'show_admin_column' => false,
     206            'show_admin_column' => true,
    207207            'capabilities'      => array(
    208208                'assign_terms' => 'do_not_allow',
     
    220220            'public'            => true,
    221221            'show_ui'           => true,
    222             'show_admin_column' => false,
     222            'show_admin_column' => true,
    223223            'capabilities'      => array(
    224224                'assign_terms' => 'do_not_allow',
     
    246246            'public'            => true,
    247247            'show_ui'           => true,
    248             'show_admin_column' => false,
     248            'show_admin_column' => true,
    249249            'meta_box_cb'       => false,
    250250            'capabilities'      => array(
Note: See TracChangeset for help on using the changeset viewer.