Make WordPress Core

Ticket #25582: 25582.2.diff

File 25582.2.diff, 3.0 KB (added by bradyvercher, 9 years ago)
  • src/wp-admin/includes/class-wp-posts-list-table.php

    diff --git src/wp-admin/includes/class-wp-posts-list-table.php src/wp-admin/includes/class-wp-posts-list-table.php
    index a845c4c..afa6b8f 100644
    class WP_Posts_List_Table extends WP_List_Table { 
    14701470
    14711471        <?php endif; // count( $flat_taxonomies ) && !$bulk  ?>
    14721472
    1473         <?php if ( post_type_supports( $screen->post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) :
     1473        <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) :
    14741474                if ( $bulk ) : ?>
    14751475
    14761476                        <div class="inline-edit-group">
    1477                 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    1478                         <label class="alignleft">
    1479                                 <span class="title"><?php _e( 'Comments' ); ?></span>
    1480                                 <select name="comment_status">
    1481                                         <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    1482                                         <option value="open"><?php _e( 'Allow' ); ?></option>
    1483                                         <option value="closed"><?php _e( 'Do not allow' ); ?></option>
    1484                                 </select>
    1485                         </label>
    1486                 <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
    1487                         <label class="alignright">
    1488                                 <span class="title"><?php _e( 'Pings' ); ?></span>
    1489                                 <select name="ping_status">
    1490                                         <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    1491                                         <option value="open"><?php _e( 'Allow' ); ?></option>
    1492                                         <option value="closed"><?php _e( 'Do not allow' ); ?></option>
    1493                                 </select>
    1494                         </label>
    1495                 <?php endif; ?>
     1477                                <label class="alignleft">
     1478                                        <span class="title"><?php _e( 'Comments' ); ?></span>
     1479                                        <select name="comment_status">
     1480                                                <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     1481                                                <option value="open"><?php _e( 'Allow' ); ?></option>
     1482                                                <option value="closed"><?php _e( 'Do not allow' ); ?></option>
     1483                                        </select>
     1484                                </label>
     1485                                <label class="alignright">
     1486                                        <span class="title"><?php _e( 'Pings' ); ?></span>
     1487                                        <select name="ping_status">
     1488                                                <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     1489                                                <option value="open"><?php _e( 'Allow' ); ?></option>
     1490                                                <option value="closed"><?php _e( 'Do not allow' ); ?></option>
     1491                                        </select>
     1492                                </label>
    14961493                        </div>
    14971494
    1498         <?php else : // $bulk ?>
     1495                <?php else : // $bulk ?>
    14991496
    15001497                        <div class="inline-edit-group">
    1501                         <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    15021498                                <label class="alignleft">
    15031499                                        <input type="checkbox" name="comment_status" value="open" />
    15041500                                        <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span>
    15051501                                </label>
    1506                         <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
    15071502                                <label class="alignleft">
    15081503                                        <input type="checkbox" name="ping_status" value="open" />
    15091504                                        <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span>
    15101505                                </label>
    1511                         <?php endif; ?>
    15121506                        </div>
    15131507
    1514         <?php endif; // $bulk
     1508                <?php endif; // $bulk
    15151509        endif; // post_type_supports comments or pings ?>
    15161510
    15171511                        <div class="inline-edit-group">