Making WordPress.org

Changeset 3323


Ignore:
Timestamp:
06/09/2016 04:37:23 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Disable unused taxonomy meta boxes.

For now only Plugin Cateogories are important, the other taxonomies will be
added at a later point in time.

See #1573.

File:
1 edited

Legend:

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

    r3320 r3323  
    102102                        'show_ui'           => current_user_can( 'plugin_set_section' ),
    103103                        'show_admin_column' => current_user_can( 'plugin_set_section' ),
    104                         'meta_box_cb'       => 'post_categories_meta_box',
     104                        'meta_box_cb'       => false, // 'post_categories_meta_box',
    105105                        'capabilities'      => array(
    106106                                'assign_terms' => 'plugin_set_section',
    107107                        ),
    108108                        'labels'            => array(
    109                                 'name'          => __( 'Plugin Sections', 'wporg-plugins' ),
     109                                'name' => __( 'Plugin Sections', 'wporg-plugins' ),
    110110                        ),
    111111                ) );
    … …  
    121121                        ),
    122122                        'labels'            => array(
    123                                 'name'          => __( 'Plugin Categories',  'wporg-plugins' ),
     123                                'name'          => __( 'Plugin Categories', 'wporg-plugins' ),
    124124                                'singular_name' => __( 'Plugin Category',   'wporg-plugins' ),
    125125                                'edit_item'     => __( 'Edit Category',     'wporg-plugins' ),
    … …  
    127127                                'add_new_item'  => __( 'Add New Category',  'wporg-plugins' ),
    128128                                'new_item_name' => __( 'New Category Name', 'wporg-plugins' ),
    129                                 'search_items'  => __( 'Search Categories',  'wporg-plugins' ),
     129                                'search_items'  => __( 'Search Categories', 'wporg-plugins' ),
    130130                        ),
    131131                        'public'            => true,
    … …  
    134134                        'meta_box_cb'       => array( __NAMESPACE__ . '\Admin\Metabox\Plugin_Categories', 'display' ),
    135135                        'capabilities'      => array(
    136                                 'assign_terms' => 'plugin_set_category'
     136                                'assign_terms' => 'plugin_set_category',
    137137                        )
    138138                ) );
    … …  
    143143                        'rewrite'           => false,
    144144                        'labels'            => array(
    145                                 'name'          => __( 'Built For',  'wporg-plugins' ),
     145                                'name'          => __( 'Built For', 'wporg-plugins' ),
    146146                        ),
    147147                        'public'            => true,
    148148                        'show_ui'           => true,
    149149                        'show_admin_column' => false,
    150                         //'meta_box_cb'       => array( __NAMESPACE__ . '\Admin\Metabox\Plugin_Categories', 'display' ),
     150                        'meta_box_cb'       => false, // array( __NAMESPACE__ . '\Admin\Metabox\Plugin_Categories', 'display' ),
    151151                        'capabilities'      => array(
    152                                 'assign_terms' => 'plugin_set_category'
     152                                'assign_terms' => 'plugin_set_category',
    153153                        )
    154154                ) );
    … …  
    159159                        'rewrite'           => false,
    160160                        'labels'            => array(
    161                                 'name'          => __( 'Business Model',  'wporg-plugins' ),
     161                                'name'          => __( 'Business Model', 'wporg-plugins' ),
    162162                        ),
    163163                        'public'            => true,
    164164                        'show_ui'           => true,
    165165                        'show_admin_column' => false,
    166                         //'meta_box_cb'       => array( __NAMESPACE__ . '\Admin\Metabox\Plugin_Categories', 'display' ),
     166                        'meta_box_cb'       => false, // array( __NAMESPACE__ . '\Admin\Metabox\Plugin_Categories', 'display' ),
    167167                        'capabilities'      => array(
    168                                 'assign_terms' => 'plugin_set_category'
     168                                'assign_terms' => 'plugin_set_category',
    169169                        )
    170170                ) );
Note: See TracChangeset for help on using the changeset viewer.