Make WordPress Core


Ignore:
Timestamp:
01/03/2015 06:19:46 AM (10 years ago)
Author:
wonderboymusic
Message:

Use the 'not_found' label when there are no items for a taxonomy in the terms list table.

Props SergeyBiryukov.
Fixes #30586.

File:
1 edited

Legend:

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

    r31024 r31035  
    451451 * - 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.
    452452 * - 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.
    453  * - not_found - This string isn't used on hierarchical taxonomies. Default is "No tags found", used in the meta box.
     453 * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table.
    454454 *
    455455 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories).
     
    485485        'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
    486486        'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
    487         'not_found' => array( __( 'No tags found.' ), null ),
     487        'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
    488488    );
    489489    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.