rebase on oct-10-2023
This commit is contained in:
@@ -322,7 +322,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @return string[] Array of column titles keyed by their column name.
|
||||
*/
|
||||
public function get_columns() {
|
||||
$columns = array(
|
||||
@@ -343,7 +343,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
*/
|
||||
protected function get_sortable_columns() {
|
||||
return array(
|
||||
'name' => 'name',
|
||||
'name' => array( 'name', false, __( 'Theme' ), __( 'Table ordered by Theme Name.' ), 'asc' ),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -512,8 +512,8 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
$theme = $item;
|
||||
$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
|
||||
?>
|
||||
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
||||
<label class="screen-reader-text" for="<?php echo $checkbox_id; ?>" >
|
||||
<label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" >
|
||||
<span class="screen-reader-text">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: Hidden accessibility text. %s: Theme name */
|
||||
@@ -521,7 +521,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
$theme->display( 'Name' )
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user