Skip to content

Commit

Permalink
Template Loader: Fix rebase mistake. (#18877)
Browse files Browse the repository at this point in the history
* Template Loader: Fix rebase mistake.

* Template Loader: Add separate if guard.
  • Loading branch information
epiqueras authored Dec 2, 2019
1 parent 5671c0a commit 0303999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ function gutenberg_find_template( $template_file ) {
(object) $current_template_post
);
}
}

if ( $current_template_post ) {
$_wp_current_template_content = $current_template_post->post_content;
}

Expand Down

0 comments on commit 0303999

Please sign in to comment.