From 891a80ed8386ffaf26f696bf655080708728399b Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 27 Nov 2017 10:14:41 -0500 Subject: [PATCH] Framework: Check post type template as non-empty --- lib/client-assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index 9fdf448316d267..40103dc4e0c5e2 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -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; }