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

Props SergeyBiryukov.
Fixes #30586.


git-svn-id: https://develop.svn.wordpress.org/trunk@31035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-01-03 06:19:46 +00:00
parent 47f2c42528
commit ca8fe1a7a4
2 changed files with 6 additions and 2 deletions

View File

@@ -112,6 +112,10 @@ class WP_Terms_List_Table extends WP_List_Table {
return true;
}
public function no_items() {
echo get_taxonomy( $this->screen->taxonomy )->labels->not_found;
}
protected function get_bulk_actions() {
$actions = array();
$actions['delete'] = __( 'Delete' );