Changeset 15190 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/10/2010 04:07:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r15142 r15190 335 335 * - add_new_item - Default is Add New Tag/Add New Category 336 336 * - new_item_name - Default is New Tag Name/New Category Name 337 * - separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas," used in the meta box. 338 * - add_or_remove_items - This string isn't used on hierarchical taxonomies. Default is "Add or remove tags," used in the meta box when JavaScript is disabled. 339 * - choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags," used in the meta box. 337 340 * 338 341 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories.) … … 344 347 345 348 function get_taxonomy_labels( $tax ) { 349 if ( isset( $tax->helps ) && empty( $tax->labels['separate_items_with_commas'] ) ) 350 $tax->labels['separate_items_with_commas'] = $tax->helps; 351 346 352 $nohier_vs_hier_defaults = array( 347 353 'name' => array( _x( 'Post Tags', 'taxonomy general name' ), _x( 'Categories', 'taxonomy general name' ) ), … … 356 362 'add_new_item' => array( __( 'Add New Tag' ), __( 'Add New Category' ) ), 357 363 'new_item_name' => array( __( 'New Tag Name' ), __( 'New Category Name' ) ), 364 'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ), 365 'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 366 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 358 367 ); 359 368
Note: See TracChangeset
for help on using the changeset viewer.