as2 is used by an other plugin

This commit is contained in:
Matthias Pfefferle 2019-07-26 17:06:53 +02:00
parent 9cdae4daaa
commit 1ab723eb7a

View file

@ -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 );
}
/**