diff --git a/admin/class-convertkit-mm-admin.php b/admin/class-convertkit-mm-admin.php index 98ded31..2a5aa0c 100644 --- a/admin/class-convertkit-mm-admin.php +++ b/admin/class-convertkit-mm-admin.php @@ -582,7 +582,7 @@ public function display_settings_page() { if ( ! $this->settings->has_access_and_refresh_token() ) { // Determine the OAuth URL to begin the authorization process. $api = new ConvertKit_MM_API( CONVERTKIT_MM_OAUTH_CLIENT_ID, CONVERTKIT_MM_OAUTH_CLIENT_REDIRECT_URI ); - $oauth_url = $api->get_oauth_url( admin_url( 'options-general.php?page=convertkit-mm' ) ); + $oauth_url = $api->get_oauth_url( admin_url( 'options-general.php?page=convertkit-mm' ), get_site_url() ); ?>

diff --git a/composer.json b/composer.json index 221fb8c..0c9e490 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "project", "license": "GPLv3", "require": { - "convertkit/convertkit-wordpress-libraries": "2.0.4" + "convertkit/convertkit-wordpress-libraries": "2.0.5" }, "require-dev": { "lucatume/wp-browser": "<3.5",