]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-terms-list-table.php
WordPress 4.2
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-terms-list-table.php
index 1916b5ac037ddc5f0630ff31c68004c72eb1e18a..5eda18691c326f13e499f8cfae6b1e052b1b3c31 100644 (file)
@@ -11,6 +11,8 @@ class WP_Terms_List_Table extends WP_List_Table {
 
        public $callback_args;
 
+       private $level;
+
        /**
         * Constructor.
         *
@@ -112,6 +114,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' );
@@ -262,7 +268,6 @@ class WP_Terms_List_Table extends WP_List_Table {
 
        /**
         * @global string $taxonomy
-        * @staticvar string $row_class
         * @param object $tag
         * @param int $level
         */
@@ -270,12 +275,9 @@ class WP_Terms_List_Table extends WP_List_Table {
                global $taxonomy;
                $tag = sanitize_term( $tag, $taxonomy );
 
-               static $row_class = '';
-               $row_class = ( $row_class == '' ? ' class="alternate"' : '' );
-
                $this->level = $level;
 
-               echo '<tr id="tag-' . $tag->term_id . '"' . $row_class . '>';
+               echo '<tr id="tag-' . $tag->term_id . '">';
                $this->single_row_columns( $tag );
                echo '</tr>';
        }
@@ -461,7 +463,7 @@ class WP_Terms_List_Table extends WP_List_Table {
                        return;
 ?>
 
-       <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
+       <form method="get"><table style="display: none"><tbody id="inlineedit">
                <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
 
                        <fieldset><div class="inline-edit-col">
@@ -495,8 +497,8 @@ class WP_Terms_List_Table extends WP_List_Table {
        ?>
 
                <p class="inline-edit-save submit">
-                       <a accesskey="c" href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
-                       <a accesskey="s" href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
+                       <a href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
+                       <a href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
                        <span class="spinner"></span>
                        <span class="error" style="display:none;"></span>
                        <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>