| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | |
| 37 | 37 | // Refresh the token. |
| 38 | 38 | $result = $api->refresh_token(); |
| 39 | 39 | |
| 40 | - // If an error occured, don't save the new tokens. | |
| 40 | + // If an error occurred, don't save the new tokens. | |
| 41 | 41 | // Logging is handled by the ConvertKit_API_V4 class. |
| 42 | 42 | if ( is_wp_error( $result ) ) { |
| 43 | 43 | return; |
| 44 | 44 | } |
| @@ -85,9 +85,9 @@ | ||
| 85 | 85 | // Refresh Posts Resource. |
| 86 | 86 | $posts = new ConvertKit_Resource_Posts( 'cron' ); |
| 87 | 87 | $result = $posts->refresh(); |
| 88 | 88 | |
| 89 | - // Bail if an error occured. | |
| 89 | + // Bail if an error occurred. | |
| 90 | 90 | if ( is_wp_error( $result ) ) { |
| 91 | 91 | // Delete credentials if the error is a 401. |
| 92 | 92 | convertkit_maybe_delete_credentials( $result, CONVERTKIT_OAUTH_CLIENT_ID ); |
| 93 | 93 | |