Skip to content

Commit

Permalink
Fix crash using geo IP lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
johngodley committed Jul 3, 2022
1 parent b8ca434 commit 48bb7be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/lib/api-request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getRedirectLiUrl = ( url, version = 1 ) => {
export const RedirectLiApi = {
ip: {
getGeo: ( ip ) => ( {
url: getRedirectLiUrl( 'ip/' + ip + '?locale=' + Redirectioni10n.locale.localeSlug.substr( 0, 2 ) ),
url: getRedirectLiUrl( 'ip/' + ip + '?locale=' + window.Redirectioni10n.locale.substr( 0, 2 ) ),
method: 'get',
} ),
},
Expand Down
2 changes: 1 addition & 1 deletion redirection-version.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

define( 'REDIRECTION_VERSION', '5.3-beta-1' );
define( 'REDIRECTION_BUILD', '31c93582945c6844c769215715cac577' );
define( 'REDIRECTION_BUILD', '423bd4355dc2906324ee8019003a605c' );
define( 'REDIRECTION_MIN_WP', '5.4' );
2 changes: 1 addition & 1 deletion redirection.js

Large diffs are not rendered by default.

0 comments on commit 48bb7be

Please sign in to comment.