Make WordPress Core

Ticket #25582: 25582.diff

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

     
    947947
    948948        <?php endif; // count( $flat_taxonomies ) && !$bulk  ?>
    949949
    950         <?php if ( post_type_supports( $screen->post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) :
     950        <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) :
    951951                if ( $bulk ) : ?>
    952952
    953953                        <div class="inline-edit-group">
    954                 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    955                         <label class="alignleft">
    956                                 <span class="title"><?php _e( 'Comments' ); ?></span>
    957                                 <select name="comment_status">
    958                                         <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    959                                         <option value="open"><?php _e( 'Allow' ); ?></option>
    960                                         <option value="closed"><?php _e( 'Do not allow' ); ?></option>
    961                                 </select>
    962                         </label>
    963                 <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
    964                         <label class="alignright">
    965                                 <span class="title"><?php _e( 'Pings' ); ?></span>
    966                                 <select name="ping_status">
    967                                         <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    968                                         <option value="open"><?php _e( 'Allow' ); ?></option>
    969                                         <option value="closed"><?php _e( 'Do not allow' ); ?></option>
    970                                 </select>
    971                         </label>
    972                 <?php endif; ?>
     954                                <label class="alignleft">
     955                                        <span class="title"><?php _e( 'Comments' ); ?></span>
     956                                        <select name="comment_status">
     957                                                <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     958                                                <option value="open"><?php _e( 'Allow' ); ?></option>
     959                                                <option value="closed"><?php _e( 'Do not allow' ); ?></option>
     960                                        </select>
     961                                </label>
     962                                <label class="alignright">
     963                                        <span class="title"><?php _e( 'Pings' ); ?></span>
     964                                        <select name="ping_status">
     965                                                <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     966                                                <option value="open"><?php _e( 'Allow' ); ?></option>
     967                                                <option value="closed"><?php _e( 'Do not allow' ); ?></option>
     968                                        </select>
     969                                </label>
    973970                        </div>
    974971
    975         <?php else : // $bulk ?>
     972                <?php else : // $bulk ?>
    976973
    977974                        <div class="inline-edit-group">
    978                         <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
    979975                                <label class="alignleft">
    980976                                        <input type="checkbox" name="comment_status" value="open" />
    981977                                        <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span>
    982978                                </label>
    983                         <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
    984979                                <label class="alignleft">
    985980                                        <input type="checkbox" name="ping_status" value="open" />
    986981                                        <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span>
    987982                                </label>
    988                         <?php endif; ?>
    989983                        </div>
    990984
    991         <?php endif; // $bulk
     985                <?php endif; // $bulk
    992986        endif; // post_type_supports comments or pings ?>
    993987
    994988                        <div class="inline-edit-group">