rebase from live enviornment
This commit is contained in:
14
wp/plugins/wordfence/lib/wfRESTAPI.php
Normal file
14
wp/plugins/wordfence/lib/wfRESTAPI.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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, '/');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user