Quick/Bulk Edit: Remove duplicate inline-edit-{$screen->post_type}
CSS class from Quick Edit table rows.
Props ibachal. Fixes #41906. git-svn-id: https://develop.svn.wordpress.org/trunk@41576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
784d983f59
commit
bc23b8840d
@ -1375,11 +1375,15 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
<form method="get"><table style="display: none"><tbody id="inlineedit">
|
||||
<?php
|
||||
$hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
|
||||
$inline_edit_classes = "inline-edit-row inline-edit-row-$hclass";
|
||||
$bulk_edit_classes = "bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}";
|
||||
$quick_edit_classes = "quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}";
|
||||
|
||||
$bulk = 0;
|
||||
while ( $bulk < 2 ) { ?>
|
||||
|
||||
<tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="inline-edit-row inline-edit-row-<?php echo "$hclass inline-edit-" . $screen->post_type;
|
||||
echo $bulk ? " bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}" : " quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}";
|
||||
<tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="<?php echo $inline_edit_classes . ' ';
|
||||
echo $bulk ? $bulk_edit_classes : $quick_edit_classes;
|
||||
?>" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
|
||||
|
||||
<fieldset class="inline-edit-col-left">
|
||||
|
Loading…
Reference in New Issue
Block a user