- Timestamp:
- 06/21/2023 09:45:52 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r55954 r55971 209 209 */ 210 210 protected function get_sortable_columns() { 211 $taxonomy = $this->screen->taxonomy; 212 213 if ( ! isset( $_GET['orderby'] ) && is_taxonomy_hierarchical( $taxonomy ) ) { 214 $name_orderby_text = __( 'Table ordered hierarchically.' ); 215 } else { 216 $name_orderby_text = __( 'Table ordered by Name.' ); 217 } 218 211 219 return array( 212 'name' => 'name',213 'description' => 'description',214 'slug' => 'slug',215 'posts' => 'count',216 'links' => 'count',220 'name' => array( 'name', false, _x( 'Name', 'term name' ), $name_orderby_text, 'asc' ), 221 'description' => array( 'description', false, __( 'Description' ), __( 'Table ordered by Description.' ) ), 222 'slug' => array( 'slug', false, __( 'Slug' ), __( 'Table ordered by Slug.' ) ), 223 'posts' => array( 'count', false, _x( 'Count', 'Number/count of items' ), __( 'Table ordered by Posts Count.' ) ), 224 'links' => array( 'count', false, __( 'Links' ), __( 'Table ordered by Links.' ) ), 217 225 ); 218 226 }
Note: See TracChangeset
for help on using the changeset viewer.