Skip to content

Commit 5dac683

Browse files
committed
switch to constants to define pathes
1 parent 1a2885c commit 5dac683

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/class-activitypub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public static function render_json_template( $template ) {
4646
}
4747

4848
if ( \is_author() ) {
49-
$json_template = \dirname( __FILE__ ) . '/../templates/author-json.php';
49+
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php';
5050
} elseif ( \is_singular() ) {
51-
$json_template = \dirname( __FILE__ ) . '/../templates/post-json.php';
51+
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php';
5252
} elseif ( \is_home() ) {
53-
$json_template = \dirname( __FILE__ ) . '/../templates/blog-json.php';
53+
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/blog-json.php';
5454
}
5555

5656
global $wp_query;

0 commit comments

Comments
 (0)