Be consistent with the arguments passed to the theme_action_links filter. Stop passing stylesheet from class-wp-ms-themes-list-table.php.
Props georgestephanis fixes #24478 Built from https://develop.svn.wordpress.org/trunk@25032 git-svn-id: http://core.svn.wordpress.org/trunk@25019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -149,6 +149,7 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
. "' );" . '">' . __( 'Delete' ) . '</a>';
|
||||
|
||||
$actions = apply_filters( 'theme_action_links', $actions, $theme );
|
||||
$actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme );
|
||||
$delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
|
||||
unset( $actions['delete'] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user