as2
is used by an other plugin
This commit is contained in:
parent
9cdae4daaa
commit
1ab723eb7a
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ class Activitypub {
|
||||||
|
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
|
|
||||||
if ( isset( $wp_query->query_vars['as2'] ) ) {
|
if ( isset( $wp_query->query_vars['activitypub'] ) ) {
|
||||||
return $json_template;
|
return $json_template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class Activitypub {
|
||||||
* won't mangle it.
|
* won't mangle it.
|
||||||
*/
|
*/
|
||||||
public static function add_query_vars( $vars ) {
|
public static function add_query_vars( $vars ) {
|
||||||
$vars[] = 'as2';
|
$vars[] = 'activitypub';
|
||||||
|
|
||||||
return $vars;
|
return $vars;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ class Activitypub {
|
||||||
* Add our rewrite endpoint to permalinks and pages.
|
* Add our rewrite endpoint to permalinks and pages.
|
||||||
*/
|
*/
|
||||||
public static function add_rewrite_endpoint() {
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue