@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | 'args' => $this->create_sub_item_args() |
122 | 122 | ), |
123 | 123 | ) ); |
124 | - register_rest_route( $namespace, sprintf( '/%s/(?P<id>[\d]+)/%s/(?P<s_id>[\w-]+)%s', $base, $sub_type, $format ) , array( |
|
124 | + register_rest_route( $namespace, sprintf( '/%s/(?P<id>[\d]+)/%s/(?P<s_id>[\w-]+)%s', $base, $sub_type, $format ), array( |
|
125 | 125 | array( |
126 | 126 | 'methods' => \WP_REST_Server::READABLE, |
127 | 127 | 'callback' => array( $this, 'get_sub_item' ), |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * @return \WP_REST_Response |
373 | 373 | */ |
374 | 374 | protected function not_implemented( ) { |
375 | - $error = new \WP_Error( 'not-implemented-yet', __( 'Endpoint Not Yet Implemented.', 'gravityview' ) ); |
|
375 | + $error = new \WP_Error( 'not-implemented-yet', __( 'Endpoint Not Yet Implemented.', 'gravityview' ) ); |
|
376 | 376 | return new \WP_REST_Response( $error, 501 ); |
377 | 377 | } |
378 | 378 |