Skip to content

Commit 1bafaab

Browse files
authored
fix: 🛠️ Embeds on other sites get proper embed template (#86)
Fixes #83 * style: ♻️ Spacing * fix: 🐛 Remove old code that disables plugin update checking. This code broke oEmbeds
1 parent 027a7ac commit 1bafaab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Template/Post_Single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Post_Single extends Template {
1313
public function register( $query_result, $query, $template_type ) {
1414
$template = $this->register_template();
1515

16-
if ( empty( $template ) || ! is_single() ) {
16+
if ( empty( $template ) || ! is_single() || in_array('embed-post', $query['slug__in']) ) {
1717
return $query_result;
1818
}
1919

0 commit comments

Comments
 (0)