Skip to content

Commit

Permalink
clean api filter
Browse files Browse the repository at this point in the history
  • Loading branch information
julian9499 authored Nov 14, 2023
1 parent f33890f commit 62b945e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/Cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,7 @@ static function remove_version_query_arg_amp($src)
*/
static function disable_default_endpoints( $endpoints ) {
$endpoints_to_remove = array(
'/oembed/1.0',
'/wp/v2/media',
'/wp/v2/types',
'/wp/v2/statuses',
'/wp/v2/taxonomies',
'/wp/v2/tags',
'/wp/v2/users',
'/wp/v2/comments',
'/wp/v2/settings',
'/wp/v2/themes',
'/wp/v2/oembed',
'/wp/v2/posts',
'/wp/v2/pages',
'/wp/v2/search',
);

if (!is_user_logged_in() ) {
Expand Down

0 comments on commit 62b945e

Please sign in to comment.