We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2885c commit 5dac683Copy full SHA for 5dac683
includes/class-activitypub.php
@@ -46,11 +46,11 @@ public static function render_json_template( $template ) {
46
}
47
48
if ( \is_author() ) {
49
- $json_template = \dirname( __FILE__ ) . '/../templates/author-json.php';
+ $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php';
50
} elseif ( \is_singular() ) {
51
- $json_template = \dirname( __FILE__ ) . '/../templates/post-json.php';
+ $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php';
52
} elseif ( \is_home() ) {
53
- $json_template = \dirname( __FILE__ ) . '/../templates/blog-json.php';
+ $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/blog-json.php';
54
55
56
global $wp_query;
0 commit comments