From 1ab723eb7a0889506b44a77ccebb65172ac518b0 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 26 Jul 2019 17:06:53 +0200 Subject: [PATCH] `as2` is used by an other plugin --- 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 baf7d67..582304b 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -42,7 +42,7 @@ class Activitypub { global $wp_query; - if ( isset( $wp_query->query_vars['as2'] ) ) { + if ( isset( $wp_query->query_vars['activitypub'] ) ) { return $json_template; } @@ -76,7 +76,7 @@ class Activitypub { * won't mangle it. */ public static function add_query_vars( $vars ) { - $vars[] = 'as2'; + $vars[] = 'activitypub'; return $vars; } @@ -85,7 +85,7 @@ class Activitypub { * Add our rewrite endpoint to permalinks and pages. */ public static function add_rewrite_endpoint() { - add_rewrite_endpoint( 'as2', EP_AUTHORS | EP_PERMALINK | EP_PAGES ); + add_rewrite_endpoint( 'activitypub', EP_AUTHORS | EP_PERMALINK | EP_PAGES ); } /**