Ticket #25582: 25582.2.diff
File 25582.2.diff, 3.0 KB (added by , 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 { 1470 1470 1471 1471 <?php endif; // count( $flat_taxonomies ) && !$bulk ?> 1472 1472 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' ) ) : 1474 1474 if ( $bulk ) : ?> 1475 1475 1476 1476 <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( '— No Change —' ); ?></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( '— No Change —' ); ?></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( '— No Change —' ); ?></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( '— No Change —' ); ?></option> 1489 <option value="open"><?php _e( 'Allow' ); ?></option> 1490 <option value="closed"><?php _e( 'Do not allow' ); ?></option> 1491 </select> 1492 </label> 1496 1493 </div> 1497 1494 1498 <?php else : // $bulk ?>1495 <?php else : // $bulk ?> 1499 1496 1500 1497 <div class="inline-edit-group"> 1501 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>1502 1498 <label class="alignleft"> 1503 1499 <input type="checkbox" name="comment_status" value="open" /> 1504 1500 <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span> 1505 1501 </label> 1506 <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>1507 1502 <label class="alignleft"> 1508 1503 <input type="checkbox" name="ping_status" value="open" /> 1509 1504 <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span> 1510 1505 </label> 1511 <?php endif; ?>1512 1506 </div> 1513 1507 1514 <?php endif; // $bulk1508 <?php endif; // $bulk 1515 1509 endif; // post_type_supports comments or pings ?> 1516 1510 1517 1511 <div class="inline-edit-group">