Make WordPress Core


Ignore:
Timestamp:
09/22/2015 04:24:53 AM (9 years ago)
Author:
wonderboymusic
Message:

Widgets: Make the categories widget work with custom taxonomies.

Props fonglh, wonderboymusic, DrewAPicture, kucrut.
Fixes #21165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy-functions.php

    r34359 r34376  
    460460 * - name - general name for the taxonomy, usually plural. The same as and overridden by $tax->label. Default is Tags/Categories
    461461 * - singular_name - name for one object of this taxonomy. Default is Tag/Category
     462 * - select_name - prompt to select a taxonomy when using a dropdown list in the Categories widget. Default is 'Select Category'.
    462463 * - search_items - Default is Search Tags/Search Categories
    463464 * - popular_items - This string isn't used on hierarchical taxonomies. Default is Popular Tags
     
    498499        'name' => array( _x( 'Tags', 'taxonomy general name' ), _x( 'Categories', 'taxonomy general name' ) ),
    499500        'singular_name' => array( _x( 'Tag', 'taxonomy singular name' ), _x( 'Category', 'taxonomy singular name' ) ),
     501        'select_name' => array( null, __( 'Select Category' ) ),
    500502        'search_items' => array( __( 'Search Tags' ), __( 'Search Categories' ) ),
    501503        'popular_items' => array( __( 'Popular Tags' ), null ),
Note: See TracChangeset for help on using the changeset viewer.