firetreedesign / ccbpress-core

Introducing the easiest way to display information from Church Community Builder (CCB) on your church WordPress site.
https://churchdataconnect.com/
GNU General Public License v2.0
2 stars 0 forks source link

Use get_rest_url() instead of site_url() #59

Closed danielmilner closed 5 years ago

danielmilner commented 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.

danielmilner commented 5 years ago

Closed with c3dd2c5638566bf57f467bee1b35f7b4e62b9047