← All changes
|
includes/integrations/wishlist/class-convertkit-wishlist.php
+5
-5
3.3.2
→
3.4.4
View file →
| @@ -140,9 +140,9 @@ | ||
| 140 | 140 | if ( $setting === 'unsubscribe' ) { |
| 141 | 141 | // Get subscriber ID. |
| 142 | 142 | $subscriber_id = $api->get_subscriber_id( $email ); |
| 143 | 143 | |
| 144 | - // Bail if an error occured e.g. no subscriber exists. | |
| 144 | + // Bail if an error occurred e.g. no subscriber exists. | |
| 145 | 145 | if ( is_wp_error( $subscriber_id ) ) { |
| 146 | 146 | return $subscriber_id; |
| 147 | 147 | } |
| 148 | 148 | |
| @@ -172,9 +172,9 @@ | ||
| 172 | 172 | case 'form': |
| 173 | 173 | // Subscribe with inactive state. |
| 174 | 174 | $subscriber = $api->create_subscriber( $email, $first_name, 'inactive' ); |
| 175 | 175 | |
| 176 | - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. | |
| 176 | + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. | |
| 177 | 177 | if ( is_wp_error( $subscriber ) ) { |
| 178 | 178 | break; |
| 179 | 179 | } |
| 180 | 180 | |
| @@ -195,9 +195,9 @@ | ||
| 195 | 195 | case 'sequence': |
| 196 | 196 | // Subscribe. |
| 197 | 197 | $subscriber = $api->create_subscriber( $email, $first_name ); |
| 198 | 198 | |
| 199 | - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. | |
| 199 | + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. | |
| 200 | 200 | if ( is_wp_error( $subscriber ) ) { |
| 201 | 201 | break; |
| 202 | 202 | } |
| 203 | 203 | |
| @@ -211,9 +211,9 @@ | ||
| 211 | 211 | case 'tag': |
| 212 | 212 | // Subscribe with inactive state. |
| 213 | 213 | $subscriber = $api->create_subscriber( $email, $first_name ); |
| 214 | 214 | |
| 215 | - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. | |
| 215 | + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. | |
| 216 | 216 | if ( is_wp_error( $subscriber ) ) { |
| 217 | 217 | break; |
| 218 | 218 | } |
| 219 | 219 | |
| @@ -236,9 +236,9 @@ | ||
| 236 | 236 | |
| 237 | 237 | // Get WishList Member. |
| 238 | 238 | $wlm_get_member = wlmapi_get_member( $id ); |
| 239 | 239 | |
| 240 | - // Bail if an error occured. | |
| 240 | + // Bail if an error occurred. | |
| 241 | 241 | if ( 0 === $wlm_get_member['success'] ) { |
| 242 | 242 | return false; |
| 243 | 243 | } |
| 244 | 244 | |