- Timestamp:
- 10/26/2016 08:06:43 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r38854 r38951 1529 1529 </label> 1530 1530 1531 <?php endif; // !$bulk1532 1533 if ( 'page' === $screen->post_type ) :1534 ?>1535 1536 <label>1537 <span class="title"><?php _e( 'Template' ); ?></span>1538 <select name="page_template">1539 <?php if ( $bulk ) : ?>1540 <option value="-1"><?php _e( '— No Change —' ); ?></option>1541 <?php endif; // $bulk ?>1542 <?php1543 /** This filter is documented in wp-admin/includes/meta-boxes.php */1544 $default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'quick-edit' );1545 ?>1546 <option value="default"><?php echo esc_html( $default_title ); ?></option>1547 <?php page_template_dropdown() ?>1548 </select>1549 </label>1550 1551 1531 <?php 1552 endif; // page post_type1532 endif; // !$bulk 1553 1533 endif; // page-attributes 1554 1534 ?> 1535 1536 <?php if ( 0 < count( get_page_templates( null, $screen->post_type ) ) ) : ?> 1537 <label> 1538 <span class="title"><?php _e( 'Template' ); ?></span> 1539 <select name="page_template"> 1540 <?php if ( $bulk ) : ?> 1541 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1542 <?php endif; // $bulk ?> 1543 <?php 1544 /** This filter is documented in wp-admin/includes/meta-boxes.php */ 1545 $default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'quick-edit' ); 1546 ?> 1547 <option value="default"><?php echo esc_html( $default_title ); ?></option> 1548 <?php page_template_dropdown( $post->page_template, $screen->post_type ) ?> 1549 </select> 1550 </label> 1551 <?php endif; ?> 1555 1552 1556 1553 <?php if ( count( $flat_taxonomies ) && !$bulk ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.