Files
medicalalert-web-reloaded/wp/wp-content/plugins/wordfence/lib/wfRESTAPI.php
Tony Volpe 4eb982d7a8 Merged in feature/from-pantheon (pull request #16)
code from pantheon

* code from pantheon
2024-01-10 17:03:02 +00:00

15 lines
377 B
PHP

<?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, '/');
}
}
}