Skip to content

Commit

Permalink
Merge pull request #3674 from WordPress/fix/client-assets-template-wa…
Browse files Browse the repository at this point in the history
…rning

Framework: Check post type template as non-empty
  • Loading branch information
aduth authored Nov 27, 2017
2 parents d5711dc + 891a80e commit 6576b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
);

$post_type_object = get_post_type_object( $post_to_edit['type'] );
if ( $post_type_object->template ) {
if ( ! empty( $post_type_object->template ) ) {
$editor_settings['template'] = $post_type_object->template;
}

Expand Down

0 comments on commit 6576b76

Please sign in to comment.