Make WordPress Core

Ticket #30586: 30586.patch

File 30586.patch, 2.0 KB (added by SergeyBiryukov, 10 years ago)
  • src/wp-admin/includes/class-wp-terms-list-table.php

     
    112112                return true;
    113113        }
    114114
     115        public function no_items() {
     116                echo get_taxonomy( $this->screen->taxonomy )->labels->not_found;
     117        }
     118
    115119        protected function get_bulk_actions() {
    116120                $actions = array();
    117121                $actions['delete'] = __( 'Delete' );
  • src/wp-includes/taxonomy.php

     
    450450 * - separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas", used in the meta box.
    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).
    456456 *
     
    484484                'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ),
    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'];
    490490