admin url relative

This commit is contained in:
Mike Jolley 2012-10-12 12:53:37 +01:00
parent 34f230a0d0
commit 20d7e9b54f
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
} }