You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
377 B
15 lines
377 B
5 years ago
|
<?php
|
||
|
if (defined('ABSPATH')) {
|
||
|
class wfWP_REST_Users_Controller extends WP_REST_Users_Controller
|
||
|
{
|
||
|
public static function wfGetURLBase() {
|
||
|
$controller = new wfWP_REST_Users_Controller();
|
||
|
return rtrim($controller->namespace . '/' . $controller->rest_base, '/');
|
||
|
}
|
||
|
|
||
|
public function _wfGetURLBase() {
|
||
|
return rtrim($this->namespace, '/' . $this->rest_base, '/');
|
||
|
}
|
||
|
}
|
||
|
}
|