Changeset 13776
- Timestamp:
- 03/20/2010 02:37:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r13775 r13776 512 512 * @param object $post 513 513 */ 514 function page_attributes_meta_box($post) {514 function page_attributes_meta_box($post) { 515 515 ?> 516 516 <h5><?php _e('Parent') ?></h5> … … 519 519 <p><?php _e('You can arrange your pages in hierarchies. For example, you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p> 520 520 <?php 521 if ( 0 != count( get_page_templates() ) ) { ?> 521 if ( 0 != count( get_page_templates() ) ) { 522 $template = !empty($post->page_template) ? $post->page_template : false; 523 ?> 522 524 <h5><?php _e('Template') ?></h5> 523 525 <label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> 524 526 <option value='default'><?php _e('Default Template'); ?></option> 525 <?php page_template_dropdown($ post->page_template); ?>527 <?php page_template_dropdown($template); ?> 526 528 </select> 527 529 <p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above.'); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.