Closed danielmilner closed 5 years ago
https://github.com/firetreedesign/ccbpress-core/blob/f67b15e338350ce46bde4488b1414a7c1fff256c/includes/admin/admin-scripts.php#L93
If someone has changed their WordPress Address (URL) setting, then site_url() will return the wrong path to the REST API. Instead, use the get_rest_url() function.
site_url()
get_rest_url()
Closed with c3dd2c5638566bf57f467bee1b35f7b4e62b9047
https://github.com/firetreedesign/ccbpress-core/blob/f67b15e338350ce46bde4488b1414a7c1fff256c/includes/admin/admin-scripts.php#L93
If someone has changed their WordPress Address (URL) setting, then
site_url()
will return the wrong path to the REST API. Instead, use theget_rest_url()
function.