Changeset 13221 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 02/19/2024 02:47:30 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13210 r13221 223 223 ) ); 224 224 225 register_taxonomy( 'plugin_category', 'plugin', array(226 'hierarchical' => true, /* for tax_input[] handling on post saves. */227 'query_var' => 'plugin_category',228 'rewrite' => array(229 'hierarchical' => false,230 'slug' => 'category',231 'with_front' => false,232 'ep_mask' => EP_TAGS,233 ),234 'labels' => array(235 'name' => __( 'Plugin Categories', 'wporg-plugins' ),236 'singular_name' => __( 'Plugin Category', 'wporg-plugins' ),237 'edit_item' => __( 'Edit Category', 'wporg-plugins' ),238 'update_item' => __( 'Update Category', 'wporg-plugins' ),239 'add_new_item' => __( 'Add New Category', 'wporg-plugins' ),240 'new_item_name' => __( 'New Category Name', 'wporg-plugins' ),241 'search_items' => __( 'Search Categories', 'wporg-plugins' ),242 ),243 'public' => true,244 'show_ui' => true,245 'show_admin_column' => false,246 'capabilities' => array(247 'assign_terms' => 'plugin_set_category',248 ),249 ) );250 251 225 /* 252 226 * Register before other taxonomies. … … 277 251 'capabilities' => array( 278 252 'assign_terms' => 'do_not_allow', 253 ), 254 ) ); 255 256 register_taxonomy( 'plugin_category', 'plugin', array( 257 'hierarchical' => true, /* for tax_input[] handling on post saves. */ 258 'query_var' => 'plugin_category', 259 'rewrite' => array( 260 'hierarchical' => false, 261 'slug' => 'category', 262 'with_front' => false, 263 'ep_mask' => EP_TAGS, 264 ), 265 'labels' => array( 266 'name' => __( 'Plugin Categories', 'wporg-plugins' ), 267 'singular_name' => __( 'Plugin Category', 'wporg-plugins' ), 268 'edit_item' => __( 'Edit Category', 'wporg-plugins' ), 269 'update_item' => __( 'Update Category', 'wporg-plugins' ), 270 'add_new_item' => __( 'Add New Category', 'wporg-plugins' ), 271 'new_item_name' => __( 'New Category Name', 'wporg-plugins' ), 272 'search_items' => __( 'Search Categories', 'wporg-plugins' ), 273 ), 274 'public' => true, 275 'show_ui' => true, 276 'show_admin_column' => false, 277 'capabilities' => array( 278 'assign_terms' => 'plugin_set_category', 279 279 ), 280 280 ) );
Note: See TracChangeset
for help on using the changeset viewer.