Changeset 33016 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 07/01/2015 01:30:23 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r32984 r33016 498 498 $out .= '</div>'; 499 499 500 $out .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>'; 501 500 502 return $out; 501 503 } … … 944 946 */ 945 947 public function print_column_headers( $with_id = true ) { 946 list( $columns, $hidden, $sortable ) = $this->get_column_info();948 list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); 947 949 948 950 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); … … 977 979 elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) ) 978 980 $class[] = 'num'; 981 982 if ( $column_key === $primary ) { 983 $class[] = 'column-primary'; 984 } 979 985 980 986 if ( isset( $sortable[$column_key] ) ) { … … 1164 1170 } 1165 1171 1166 $attributes = "class='$classes'"; 1172 // Comments column uses HTML in the display name with screen reader text. 1173 // Instead of using esc_attr(), we strip tags to get closer to a user-friendly string. 1174 $data = 'data-colname="' . wp_strip_all_tags( $column_display_name ) . '"'; 1175 1176 $attributes = "class='$classes' $data"; 1167 1177 1168 1178 if ( 'cb' == $column_name ) {
Note: See TracChangeset
for help on using the changeset viewer.