| 1584 | | <?php if ( $bulk ) : ?> |
| 1585 | | <option value="-1"><?php _e( '— No Change —' ); ?></option> |
| 1586 | | <?php endif; // $bulk ?> |
| 1587 | | <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review" ?> |
| 1588 | | <option value="publish"><?php _e( 'Published' ); ?></option> |
| 1589 | | <option value="future"><?php _e( 'Scheduled' ); ?></option> |
| 1590 | | <?php if ( $bulk ) : ?> |
| 1591 | | <option value="private"><?php _e( 'Private' ) ?></option> |
| 1592 | | <?php endif; // $bulk ?> |
| 1593 | | <?php endif; ?> |
| 1594 | | <option value="pending"><?php _e( 'Pending Review' ); ?></option> |
| 1595 | | <option value="draft"><?php _e( 'Draft' ); ?></option> |
| | 1584 | <?php $inline_edit_statuses = array(); |
| | 1585 | |
| | 1586 | if ( $bulk ) : |
| | 1587 | $inline_edit_statuses['-1'] = __( '— No Change —' ); |
| | 1588 | $inline_edit_statuses['private'] = __( 'Private' ); |
| | 1589 | endif; // $bulk |
| | 1590 | if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review" |
| | 1591 | $inline_edit_statuses['publish'] = __( 'Published' ); |
| | 1592 | $inline_edit_statuses['future'] = __( 'Scheduled' ); |
| | 1593 | if ( $bulk ) : |
| | 1594 | $inline_edit_statuses['private'] = __( 'Private' ); |
| | 1595 | endif; |
| | 1596 | endif; |
| | 1597 | $inline_edit_statuses['pending'] = __( 'Pending Review' ); |
| | 1598 | $inline_edit_statuses['draft'] = __( 'Draft' ); |
| | 1599 | $inline_edit_statuses = apply_filters( 'quick_edit_statuses', $inline_edit_statuses, $screen->post_type, $bulk, $can_publish ); |
| | 1600 | if ( is_array( $inline_edit_statuses ) ): |
| | 1601 | foreach ( $inline_edit_statuses as $inline_status_value => $inline_status_text ): ?> |
| | 1602 | |
| | 1603 | <option value="<?php echo esc_attr( $inline_status_value ); ?>"><?php echo esc_attr( $inline_status_text ); ?></option> |
| | 1604 | |
| | 1605 | <?php endforeach; //inline_edit_statuses |
| | 1606 | endif;//is_array( $inline_edit_statuses ) |
| | 1607 | ?> |
| | 1608 | |