Changeset 55971
- Timestamp:
- 06/21/2023 09:45:52 PM (3 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 11 edited
-
css/list-tables.css (modified) (5 diffs)
-
includes/class-wp-comments-list-table.php (modified) (2 diffs)
-
includes/class-wp-links-list-table.php (modified) (1 diff)
-
includes/class-wp-list-table.php (modified) (8 diffs)
-
includes/class-wp-media-list-table.php (modified) (1 diff)
-
includes/class-wp-ms-sites-list-table.php (modified) (1 diff)
-
includes/class-wp-ms-themes-list-table.php (modified) (1 diff)
-
includes/class-wp-ms-users-list-table.php (modified) (1 diff)
-
includes/class-wp-posts-list-table.php (modified) (1 diff)
-
includes/class-wp-terms-list-table.php (modified) (1 diff)
-
includes/class-wp-users-list-table.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r55954 r55971 462 462 } 463 463 464 .sorting-indicators { 465 display: grid; 466 } 467 464 468 .sorting-indicator { 465 469 display: block; 466 visibility: hidden;467 470 width: 10px; 468 471 height: 4px; 469 margin-top: 8px;472 margin-top: 4px; 470 473 margin-left: 7px; 471 474 } 472 475 473 476 .sorting-indicator:before { 474 content: "\f142";475 477 font: normal 20px/1 dashicons; 476 478 speak: never; … … 479 481 top: -4px; 480 482 left: -8px; 481 color: #3c434a;482 483 line-height: 0.5; 483 484 position: relative; … … 486 487 -moz-osx-font-smoothing: grayscale; 487 488 text-decoration: none !important; 488 color: #3c434a; 489 } 490 491 .column-comments .sorting-indicator:before { 492 top: 0; 493 left: -10px; 494 } 495 496 th.sorted.asc .sorting-indicator:before, 497 th.desc:hover span.sorting-indicator:before, 498 th.desc a:focus span.sorting-indicator:before { 489 color: #a7aaad; 490 } 491 492 .sorting-indicator.asc:before { 499 493 content: "\f142"; 500 494 } 501 495 502 th.sorted.desc .sorting-indicator:before, 503 th.asc:hover span.sorting-indicator:before, 504 th.asc a:focus span.sorting-indicator:before { 496 .sorting-indicator.desc:before { 505 497 content: "\f140"; 498 } 499 500 th.sorted.desc .sorting-indicator.desc:before { 501 color: #1d2327; 502 } 503 504 th.sorted.asc .sorting-indicator.asc:before { 505 color: #1d2327; 506 } 507 508 th.sorted.asc a:focus .sorting-indicator.asc:before, 509 th.sorted.asc:hover .sorting-indicator.asc:before, 510 th.sorted.desc a:focus .sorting-indicator.desc:before, 511 th.sorted.desc:hover .sorting-indicator.desc:before { 512 color: #a7aaad; 513 } 514 515 th.sorted.asc a:focus .sorting-indicator.desc:before, 516 th.sorted.asc:hover .sorting-indicator.desc:before, 517 th.sorted.desc a:focus .sorting-indicator.asc:before, 518 th.sorted.desc:hover .sorting-indicator.asc:before { 519 color: #1d2327; 506 520 } 507 521 … … 614 628 } 615 629 616 .fixed .column-comments .sorting-indicator {617 margin-top: 3px;618 }619 620 630 #menu-locations-wrap .widefat { 621 631 width: 60%; … … 643 653 float: left; 644 654 cursor: pointer; 645 }646 647 th.sorted .sorting-indicator,648 th.desc:hover span.sorting-indicator,649 th.desc a:focus span.sorting-indicator,650 th.asc:hover span.sorting-indicator,651 th.asc a:focus span.sorting-indicator {652 visibility: visible;653 655 } 654 656 -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r55954 r55971 541 541 protected function get_sortable_columns() { 542 542 return array( 543 'author' => 'comment_author',544 'response' => 'comment_post_ID',543 'author' => array( 'comment_author', false, __( 'Author' ), __( 'Table ordered by Comment Author.' ) ), 544 'response' => array( 'comment_post_ID', false, _x( 'In Response To', 'column name' ), __( 'Table ordered by Post Replied To.' ) ), 545 545 'date' => 'comment_date', 546 546 ); … … 581 581 ?> 582 582 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> 583 <?php 584 if ( ! isset( $_GET['orderby'] ) ) { 585 // In the initial view, Comments are ordered by comment's date but there's no column for that. 586 echo '<caption class="screen-reader-text">' . __( 'Ordered by Comment Date, descending.' ) . '</p>'; 587 } else { 588 $this->print_table_description(); 589 } 590 ?> 583 591 <thead> 584 592 <tr> -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r55954 r55971 144 144 protected function get_sortable_columns() { 145 145 return array( 146 'name' => 'name',147 'url' => 'url',148 'visible' => 'visible',149 'rating' => 'rating',146 'name' => array( 'name', false, _x( 'Name', 'link name' ), __( 'Table ordered by Name.' ), 'asc' ), 147 'url' => array( 'url', false, __( 'URL' ), __( 'Table ordered by URL.' ) ), 148 'visible' => array( 'visible', false, __( 'Visible' ), __( 'Table ordered by Visibility.' ) ), 149 'rating' => array( 'rating', false, __( 'Rating' ), __( 'Table ordered by Rating.' ) ), 150 150 ); 151 151 } -
trunk/src/wp-admin/includes/class-wp-list-table.php
r55954 r55971 1110 1110 * The format is: 1111 1111 * - `'internal-name' => 'orderby'` 1112 * - `'internal-name' => array( 'orderby', bool, 'abbr', 'orderby-text', 'initially-sorted-column-order' )` - 1112 1113 * - `'internal-name' => array( 'orderby', 'asc' )` - The second element sets the initial sorting order. 1113 1114 * - `'internal-name' => array( 'orderby', true )` - The second element makes the initial order descending. 1114 1115 * 1115 * @since 3.1.0 1116 * In the second format, passing true as second parameter will make the initial 1117 * sorting order be descending. Following parameters add a short column name to 1118 * be used as 'abbr' attribute, a translatable string for the current sorting 1119 * and the initial order for the initial sorted column, 'asc' or 'desc' (default: false). 1120 * 1121 * @since 3.1.0 1122 * @since 6.3.0 Added 'abbr', 'orderby-text' and 'initially-sorted-column-order'. 1116 1123 * 1117 1124 * @return array … … 1254 1261