Make WordPress Core

Changeset 41576


Ignore:
Timestamp:
09/23/2017 11:01:45 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Quick/Bulk Edit: Remove duplicate inline-edit-{$screen->post_type} CSS class from Quick Edit table rows.

Props ibachal.
Fixes #41906.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r41219 r41576  
    13761376                <?php
    13771377                $hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
     1378                $inline_edit_classes = "inline-edit-row inline-edit-row-$hclass";
     1379                $bulk_edit_classes   = "bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}";
     1380                $quick_edit_classes  = "quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}";
     1381
    13781382                $bulk = 0;
    13791383                while ( $bulk < 2 ) { ?>
    13801384
    1381                 <tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="inline-edit-row inline-edit-row-<?php echo "$hclass inline-edit-" . $screen->post_type;
    1382                         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}";
     1385                <tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="<?php echo $inline_edit_classes . ' ';
     1386                        echo $bulk ? $bulk_edit_classes : $quick_edit_classes;
    13831387                ?>" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
    13841388
Note: See TracChangeset for help on using the changeset viewer.