From 5dac683c4868cbc91510dc08076aabeec4c31409 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 13 Jan 2023 09:19:02 +0100 Subject: [PATCH] switch to constants to define pathes --- includes/class-activitypub.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index 658f72c..ea3532a 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -46,11 +46,11 @@ class Activitypub { } if ( \is_author() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/author-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php'; } elseif ( \is_singular() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/post-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php'; } elseif ( \is_home() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/blog-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/blog-json.php'; } global $wp_query;