admin url relative
This commit is contained in:
parent
34f230a0d0
commit
20d7e9b54f
|
@ -1228,7 +1228,7 @@ class Woocommerce {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function ajax_url() {
|
function ajax_url() {
|
||||||
return str_replace( array('https:', 'http:'), '', admin_url( 'admin-ajax.php' ) );
|
return admin_url( 'admin-ajax.php', 'relative' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue