Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -509,10 +509,12 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
*/
|
||||
public function column_cb( $item ) {
|
||||
// Restores the more descriptive, specific name for use within this method.
|
||||
$theme = $item;
|
||||
$theme = $item;
|
||||
|
||||
$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
|
||||
?>
|
||||
<label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" >
|
||||
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
||||
<label for="<?php echo $checkbox_id; ?>" >
|
||||
<span class="screen-reader-text">
|
||||
<?php
|
||||
printf(
|
||||
@@ -523,7 +525,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -859,7 +860,13 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
*/
|
||||
echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
|
||||
|
||||
echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
|
||||
wp_admin_notice(
|
||||
'',
|
||||
array(
|
||||
'type' => 'error',
|
||||
'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -872,6 +879,11 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
* @param string $column_name The current column name.
|
||||
*/
|
||||
public function column_default( $item, $column_name ) {
|
||||
// Restores the more descriptive, specific name for use within this method.
|
||||
$theme = $item;
|
||||
|
||||
$stylesheet = $theme->get_stylesheet();
|
||||
|
||||
/**
|
||||
* Fires inside each custom column of the Multisite themes list table.
|
||||
*
|
||||
@@ -881,12 +893,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
* @param string $stylesheet Directory name of the theme.
|
||||
* @param WP_Theme $theme Current WP_Theme object.
|
||||
*/
|
||||
do_action(
|
||||
'manage_themes_custom_column',
|
||||
$column_name,
|
||||
$item->get_stylesheet(), // Directory name of the theme.
|
||||
$item // Theme object.
|
||||
);
|
||||
do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user