Changeset 63398
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-application-passwords-list-table.php
r57644 r63398 215 215 } 216 216 217 printf( '<td class="%s" data-colname="%s">', esc_attr( $classes ), esc_attr( wp_strip_all_tags( $display_name ) ) ); 217 // The primary column is a `<th scope="row">` row header, matching the 218 // server-rendered markup in WP_List_Table::single_row_columns(). 219 $tag = $is_primary ? 'th' : 'td'; 220 $scope = $is_primary ? ' scope="row"' : ''; 221 222 printf( '<%1$s class="%2$s" data-colname="%3$s"%4$s>', $tag, esc_attr( $classes ), esc_attr( wp_strip_all_tags( $display_name ) ), $scope ); 218 223 219 224 switch ( $column_name ) { … … 260 265 } 261 266 262 echo '</td>';267 echo "</{$tag}>"; 263 268 } 264 269
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)