From c0c4b8091aa659dbb45d03ad513ef344ccf7ea30 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 23 Apr 2016 20:41:40 +1000 Subject: [PATCH] Use v2 --- includes/api/class-sp-rest-posts-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-sp-rest-posts-controller.php b/includes/api/class-sp-rest-posts-controller.php index 2010903f..20985eb1 100644 --- a/includes/api/class-sp-rest-posts-controller.php +++ b/includes/api/class-sp-rest-posts-controller.php @@ -6,7 +6,7 @@ class SP_REST_Posts_Controller extends WP_REST_Posts_Controller { public function __construct( $post_type ) { $this->post_type = $post_type; - $this->namespace = 'sportspress/v1'; + $this->namespace = 'sportspress/v2'; $obj = get_post_type_object( $post_type ); $this->rest_base = ! empty( $obj->rest_base ) ? $obj->rest_base : $obj->name; }