mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed UM20 ajax not working when "Site Address URL" different to "WordPress Address URL"
This commit is contained in:
@@ -68,7 +68,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
'um_verify' => $nonce
|
||||
), get_admin_url( null, 'admin-ajax.php' ) );
|
||||
} else if ( get_option( 'permalink_structure' ) ) {
|
||||
$url = get_site_url( null, 'um-api/route/' . $route . '/' . $method . '/' . $nonce );
|
||||
$url = get_home_url( null, 'um-api/route/' . $route . '/' . $method . '/' . $nonce );
|
||||
} else {
|
||||
$url = add_query_arg( array(
|
||||
'um_page' => 'api',
|
||||
@@ -76,7 +76,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
'um_resource' => $route,
|
||||
'um_method' => $method,
|
||||
'um_verify' => $nonce
|
||||
), get_site_url() );
|
||||
), get_home_url() );
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user