use const instead of dirname
This commit is contained in:
parent
63a8502205
commit
b07e756927
1 changed files with 3 additions and 3 deletions
|
@ -91,11 +91,11 @@ class Activitypub {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( \is_author() ) {
|
if ( \is_author() ) {
|
||||||
$json_template = \dirname( __FILE__ ) . '/../templates/author-json.php';
|
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php';
|
||||||
} elseif ( \Activitypub\is_ap_replies() ) {
|
} elseif ( \Activitypub\is_ap_replies() ) {
|
||||||
$json_template = \dirname( __FILE__ ) . '/../templates/replies-json.php';
|
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/replies-json.php';
|
||||||
} elseif ( \Activitypub\is_ap_comment() ) {
|
} elseif ( \Activitypub\is_ap_comment() ) {
|
||||||
$json_template = \dirname( __FILE__ ) . '/../templates/comment-json.php';
|
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/comment-json.php';
|
||||||
} elseif ( \is_singular() ) {
|
} elseif ( \is_singular() ) {
|
||||||
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php';
|
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php';
|
||||||
} elseif ( \is_home() ) {
|
} elseif ( \is_home() ) {
|
||||||
|
|
Loading…
Reference in a new issue