fixed endpoint uri
This commit is contained in:
parent
1792f606e2
commit
7514d9adfe
@ -414,7 +414,7 @@ function federated_route_needs_set_to_removal_register(){
|
|||||||
//register routes here
|
//register routes here
|
||||||
register_rest_route(
|
register_rest_route(
|
||||||
'federated-rest/v1',
|
'federated-rest/v1',
|
||||||
'needs-removal',
|
'needs-set-to-removal',
|
||||||
array(
|
array(
|
||||||
'methods' => 'GET',
|
'methods' => 'GET',
|
||||||
'callback' => 'federated_needs_set_to_removal_subscriptions',
|
'callback' => 'federated_needs_set_to_removal_subscriptions',
|
||||||
@ -443,7 +443,7 @@ function federated_needs_set_to_removal_subscriptions(){
|
|||||||
);
|
);
|
||||||
|
|
||||||
$pending_posts = get_posts($pending_args);
|
$pending_posts = get_posts($pending_args);
|
||||||
|
|
||||||
$posts = array_merge($cancelled_posts, $pending_posts);
|
$posts = array_merge($cancelled_posts, $pending_posts);
|
||||||
|
|
||||||
$output = array();
|
$output = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user