WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2016 07:41:30 AM (4 years ago)
Author:
dd32
Message:

Posts, Post Types: Fix Quick Edit to correctly set the page template for non-hierarchical post types.

Props dd32, swissspidy.
Fixes #38655.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r39059 r39210  
    298298    }
    299299
    300     echo '<div class="page_template">' . esc_html( $post->page_template ) . '</div>';
     300    echo '<div class="page_template">' . ( $post->page_template ? esc_html( $post->page_template ) : 'default' ) . '</div>';
    301301
    302302    if ( post_type_supports( $post->post_type, 'page-attributes' ) ) {
Note: See TracChangeset for help on using the changeset viewer.