| @@ -62,15 +62,14 @@ | ||
| 62 | 62 | // Output notices. |
| 63 | 63 | foreach ( $notices as $notice ) { |
| 64 | 64 | switch ( $notice ) { |
| 65 | 65 | case 'authorization_failed': |
| 66 | - $api = new ConvertKit_API_V4( CONVERTKIT_OAUTH_CLIENT_ID, CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI ); | |
| 67 | 66 | $output = sprintf( |
| 68 | 67 | '%s %s', |
| 69 | 68 | esc_html__( 'Kit: Authorization failed. Please', 'convertkit' ), |
| 70 | 69 | sprintf( |
| 71 | 70 | '<a href="%s">%s</a>', |
| 72 | - esc_url( $api->get_oauth_url( admin_url( 'options-general.php?page=_wp_convertkit_settings' ), get_site_url() ) ), | |
| 71 | + esc_url( convertkit_get_oauth_url() ), | |
| 73 | 72 | esc_html__( 'connect your Kit account.', 'convertkit' ) |
| 74 | 73 | ) |
| 75 | 74 | ); |
| 76 | 75 | break; |