- Timestamp:
- 01/12/2019 06:40:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r44221 r44574 1472 1472 </label> 1473 1473 1474 <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?>1474 <?php if ( is_post_type_viewable( $screen->post_type ) ) : // is_post_type_viewable check ?> 1475 1475 1476 1476 <label> … … 1479 1479 </label> 1480 1480 1481 <?php1481 <?php 1482 1482 endif; // is_post_type_viewable check 1483 1483 endif; // $bulk … … 1494 1494 endif; // $bulk 1495 1495 1496 if ( post_type_supports( $screen->post_type, 'author' ) ) :1497 $authors_dropdown = '';1498 1499 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) :1500 $users_opt = array(1501 'hide_if_only_one_author' => false,1502 'who' => 'authors',1503 'name' => 'post_author',1504 'class' => 'authors',1505 'multi' => 1,1506 'echo' => 0,1507 'show' => 'display_name_with_login',1508 );1509 if ( $bulk ) {1510 $users_opt['show_option_none'] = __( '— No Change —' );1511 }1512 1513 if ( $authors = wp_dropdown_users( $users_opt ) ) :1514 $authors_dropdown = '<label class="inline-edit-author">';1515 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';1516 $authors_dropdown .= $authors;1517 $authors_dropdown .= '</label>';1518 endif;1519 endif; // authors1520 ?>1521 1522 <?php1523 if ( ! $bulk ) {1524 echo $authors_dropdown;}1496 if ( post_type_supports( $screen->post_type, 'author' ) ) : 1497 $authors_dropdown = ''; 1498 1499 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) : 1500 $users_opt = array( 1501 'hide_if_only_one_author' => false, 1502 'who' => 'authors', 1503 'name' => 'post_author', 1504 'class' => 'authors', 1505 'multi' => 1, 1506 'echo' => 0, 1507 'show' => 'display_name_with_login', 1508 ); 1509 if ( $bulk ) { 1510 $users_opt['show_option_none'] = __( '— No Change —' ); 1511 } 1512 1513 if ( $authors = wp_dropdown_users( $users_opt ) ) : 1514 $authors_dropdown = '<label class="inline-edit-author">'; 1515 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>'; 1516 $authors_dropdown .= $authors; 1517 $authors_dropdown .= '</label>'; 1518 endif; 1519 endif; // authors 1520 ?> 1521 1522 <?php 1523 if ( ! $bulk ) { 1524 echo $authors_dropdown;} 1525 1525 endif; // post_type_supports author 1526 1526 1527 if ( ! $bulk && $can_publish ) :1528 ?>1527 if ( ! $bulk && $can_publish ) : 1528 ?> 1529 1529 1530 1530 <div class="inline-edit-group wp-clearfix"> … … 1546 1546 </div> 1547 1547 1548 <?php endif; ?>1548 <?php endif; ?> 1549 1549 1550 1550 </div></fieldset> … … 1691 1691 1692 1692 <div class="inline-edit-group wp-clearfix"> 1693 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>1693 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?> 1694 1694 <label class="alignleft"> 1695 1695 <input type="checkbox" name="comment_status" value="open" /> … … 1704 1704 </div> 1705 1705 1706 <?php1706 <?php 1707 1707 endif; // $bulk 1708 1708 endif; // post_type_supports comments or pings
Note: See TracChangeset
for help on using the changeset viewer.