mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user