From 368648f2b0e310af4952ebe41550ac5d87760ca7 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 8 May 2026 21:12:46 +0800 Subject: [PATCH] Fix Typos --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/tests-backward-compat.yml | 2 +- .github/workflows/tests.yml | 4 ++-- .../blocks/class-convertkit-block-content.php | 2 +- .../class-convertkit-block-form-builder.php | 2 +- .../class-convertkit-block-form-trigger.php | 2 +- .../blocks/class-convertkit-block-form.php | 6 ++--- .../blocks/class-convertkit-block-product.php | 2 +- .../class-convertkit-broadcasts-exporter.php | 4 ++-- .../class-convertkit-broadcasts-importer.php | 10 ++++---- ...ass-convertkit-output-restrict-content.php | 24 +++++++++---------- includes/class-convertkit-output.php | 12 +++++----- includes/class-convertkit-recaptcha.php | 2 +- ...source-creator-network-recommendations.php | 2 +- includes/class-convertkit-resource-forms.php | 2 +- includes/class-convertkit-setup.php | 2 +- includes/class-convertkit-subscriber.php | 2 +- includes/cron-functions.php | 4 ++-- .../class-convertkit-contactform7.php | 6 ++--- .../class-convertkit-forminator.php | 4 ++-- .../wishlist/class-convertkit-wishlist.php | 10 ++++---- wp-convertkit.php | 2 +- 22 files changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 2da178f5d..dab6564ef 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -42,7 +42,7 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest - # Requieres the dependabot-metadata job to have run successfully. + # Requires the dependabot-metadata job to have run successfully. needs: [dependabot-metadata] # Always allow non-Dependabot PRs and pushes. diff --git a/.github/workflows/tests-backward-compat.yml b/.github/workflows/tests-backward-compat.yml index 97e7a5170..b5d520528 100644 --- a/.github/workflows/tests-backward-compat.yml +++ b/.github/workflows/tests-backward-compat.yml @@ -42,7 +42,7 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest - # Requieres the dependabot-metadata job to have run successfully. + # Requires the dependabot-metadata job to have run successfully. needs: [dependabot-metadata] # Always allow non-Dependabot PRs and pushes. diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b72cd3642..ed2ac3cb8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,7 +42,7 @@ jobs: # @see: https://github.com/actions/virtual-environments runs-on: ubuntu-latest - # Requieres the dependabot-metadata job to have run successfully. + # Requires the dependabot-metadata job to have run successfully. needs: [dependabot-metadata] # Always allow non-Dependabot PRs and pushes. @@ -204,7 +204,7 @@ jobs: run: mv /home/runner/work/convertkit-wordpress/convertkit-wordpress/convertkit ${{ env.PLUGIN_DIR }} # WP_DEBUG = true is required so all PHP errors are output and caught by tests (E_ALL). - # WP_DEBUG = false for other integraiton tests, as Elementor in PHP 8.4 throws a deprecation notice + # WP_DEBUG = false for other integration tests, as Elementor in PHP 8.4 throws a deprecation notice - name: Enable WP_DEBUG if: ${{ matrix.test-groups != 'EndToEnd/integrations/other' && matrix.php-versions != '8.4' }} working-directory: ${{ env.ROOT_DIR }} diff --git a/includes/blocks/class-convertkit-block-content.php b/includes/blocks/class-convertkit-block-content.php index 45c2bc4f6..73a6fa01d 100644 --- a/includes/blocks/class-convertkit-block-content.php +++ b/includes/blocks/class-convertkit-block-content.php @@ -256,7 +256,7 @@ public function render( $atts, $content = '' ) { // Get the subscriber's tags, to see if they subscribed to this tag. $tags = $api->get_subscriber_tags( $subscriber_id ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $tags ) ) { if ( $settings->debug_enabled() ) { return ''; diff --git a/includes/blocks/class-convertkit-block-form-builder.php b/includes/blocks/class-convertkit-block-form-builder.php index fe1a97b20..16833a0fd 100644 --- a/includes/blocks/class-convertkit-block-form-builder.php +++ b/includes/blocks/class-convertkit-block-form-builder.php @@ -151,7 +151,7 @@ public function maybe_subscribe() { $custom_fields ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { // Store entry and return. if ( $form_data['store_entries'] ) { diff --git a/includes/blocks/class-convertkit-block-form-trigger.php b/includes/blocks/class-convertkit-block-form-trigger.php index f9a264329..4bec4aa50 100644 --- a/includes/blocks/class-convertkit-block-form-trigger.php +++ b/includes/blocks/class-convertkit-block-form-trigger.php @@ -362,7 +362,7 @@ public function render( $atts ) { $this->is_block_editor_request() ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $html ) ) { if ( $settings->debug_enabled() ) { return ''; diff --git a/includes/blocks/class-convertkit-block-form.php b/includes/blocks/class-convertkit-block-form.php index 964dcf485..f5e121ba8 100644 --- a/includes/blocks/class-convertkit-block-form.php +++ b/includes/blocks/class-convertkit-block-form.php @@ -382,14 +382,14 @@ public function render( $atts ) { $forms = new ConvertKit_Resource_Forms( 'output_form' ); $form = $forms->get_html( $form_id, $post_id ); - // If an error occured, it might be that we're requesting a Form ID that exists in ConvertKit + // If an error occurred, it might be that we're requesting a Form ID that exists in ConvertKit // but does not yet exist in the Plugin's Form Resources. // If so, refresh the Form Resources and try again. if ( is_wp_error( $form ) && $form->get_error_data() === 404 ) { // Refresh Forms from the API. $result = $forms->refresh(); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { if ( $settings->debug_enabled() ) { return ' '; @@ -403,7 +403,7 @@ public function render( $atts ) { $form = $forms->get_html( $form_id, $post_id ); } - // If an error still occured, the shortcode might be from the ConvertKit App for a Legacy Form ID + // If an error still occurred, the shortcode might be from the ConvertKit App for a Legacy Form ID // These ConvertKit App shortcodes, for some reason, use a different Form ID than the one presented // to us in the API. // For example, a Legacy Form ID might be 470099, but the ConvertKit app says to use the shortcode [convertkit form=5281783]). diff --git a/includes/blocks/class-convertkit-block-product.php b/includes/blocks/class-convertkit-block-product.php index a6f1362a0..bea8b12a5 100644 --- a/includes/blocks/class-convertkit-block-product.php +++ b/includes/blocks/class-convertkit-block-product.php @@ -418,7 +418,7 @@ public function render( $atts ) { ) ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $html ) ) { if ( $settings->debug_enabled() ) { return ''; diff --git a/includes/class-convertkit-broadcasts-exporter.php b/includes/class-convertkit-broadcasts-exporter.php index 6acc24a86..48cb05fa5 100644 --- a/includes/class-convertkit-broadcasts-exporter.php +++ b/includes/class-convertkit-broadcasts-exporter.php @@ -112,7 +112,7 @@ public function run_row_action() { // Export Post to a draft ConvertKit Broadcast. $result = $this->export_post_to_broadcast( $post_id ); - // If an error occured, display an error message. + // If an error occurred, display an error message. if ( is_wp_error( $result ) ) { wp_die( esc_html( $result->get_error_message() ) ); } @@ -237,7 +237,7 @@ public function export_post_to_broadcast( $post_id ) { $post->post_excerpt ); - // If an error occured, return it now. + // If an error occurred, return it now. if ( is_wp_error( $result ) ) { return $result; } diff --git a/includes/class-convertkit-broadcasts-importer.php b/includes/class-convertkit-broadcasts-importer.php index 7b918c0b3..008d90ca2 100644 --- a/includes/class-convertkit-broadcasts-importer.php +++ b/includes/class-convertkit-broadcasts-importer.php @@ -171,7 +171,7 @@ public function import_broadcast( $broadcast_id, $post_status = 'publish', $auth // Unset API class. unset( $api ); - // Bail if an error occured fetching the Broadcast. + // Bail if an error occurred fetching the Broadcast. if ( is_wp_error( $broadcast ) ) { $this->maybe_log( 'ConvertKit_Broadcasts_Importer::refresh(): Broadcast #' . $broadcast_id . '. Error fetching from API: ' . $broadcast->get_error_message() ); return $broadcast; @@ -190,7 +190,7 @@ public function import_broadcast( $broadcast_id, $post_status = 'publish', $auth true ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $post_id ) ) { $this->maybe_log( 'ConvertKit_Broadcasts_Importer::refresh(): Broadcast #' . $broadcast_id . '. Error on wp_insert_post(): ' . $post_id->get_error_message() ); return $post_id; @@ -211,7 +211,7 @@ public function import_broadcast( $broadcast_id, $post_status = 'publish', $auth true ); - // Bail if an error occured updating the Post. + // Bail if an error occurred updating the Post. if ( is_wp_error( $post_id ) ) { $this->maybe_log( 'ConvertKit_Broadcasts_Importer::refresh(): Broadcast #' . $broadcast_id . '. Error on wp_update_post() when adding Broadcast content: ' . $post_id->get_error_message() ); return $post_id; @@ -251,7 +251,7 @@ public function import_broadcast( $broadcast_id, $post_status = 'publish', $auth true ); - // Maybe log if an error occured updating the Post to the publish status. + // Maybe log if an error occurred updating the Post to the publish status. if ( is_wp_error( $post_id ) ) { $this->maybe_log( 'ConvertKit_Broadcasts_Importer::refresh(): Broadcast #' . $broadcast_id . '. Error on wp_update_post() when transitioning post status from draft to publish: ' . $post_id->get_error_message() ); return $post_id; @@ -643,7 +643,7 @@ private function add_broadcast_image_to_post( $broadcast, $post_id ) { $broadcast['thumbnail_alt'] ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $image_id ) ) { return $image_id; } diff --git a/includes/class-convertkit-output-restrict-content.php b/includes/class-convertkit-output-restrict-content.php index 93b6930e8..6809455e6 100644 --- a/includes/class-convertkit-output-restrict-content.php +++ b/includes/class-convertkit-output-restrict-content.php @@ -195,7 +195,7 @@ public function register_routes() { $post_id ); - // If an error occured, build the email form view with the error message. + // If an error occurred, build the email form view with the error message. if ( is_wp_error( $result ) ) { // Set error to display on screen. $output_restrict_content->error = $result; @@ -287,7 +287,7 @@ public function register_routes() { // Run subscriber authentication. $result = $output_restrict_content->subscriber_authentication_verify( $post_id, $token, $subscriber_code ); - // If an error occured, build the code form view with the error message. + // If an error occurred, build the code form view with the error message. if ( is_wp_error( $result ) ) { // Set error to display on screen. $output_restrict_content->error = $result; @@ -408,7 +408,7 @@ public function maybe_run_subscriber_authentication() { // Tag subscriber. $result = $this->api->tag_subscribe( $this->resource_id, $email ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { $this->error = $result; return; @@ -436,7 +436,7 @@ public function maybe_run_subscriber_authentication() { // Run subscriber authentication. $result = $this->subscriber_authentication_send_code( $email, $this->post_id ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { $this->error = $result; return; @@ -497,7 +497,7 @@ public function maybe_run_subscriber_verification() { // Run subscriber verification. $subscriber_id = $this->subscriber_authentication_verify( $this->post_id, sanitize_text_field( wp_unslash( $_REQUEST['token'] ) ), sanitize_text_field( wp_unslash( $_REQUEST['subscriber_code'] ) ) ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $subscriber_id ) ) { $this->error = $subscriber_id; return; @@ -526,7 +526,7 @@ public function subscriber_authentication_send_code( $email, $post_id ) { $this->get_url( $post_id ) ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $token ) ) { return $token; } @@ -558,7 +558,7 @@ public function subscriber_authentication_verify( $post_id, $token, $subscriber_ // Verify the token and subscriber code. $subscriber_id = $this->api->subscriber_authentication_verify( $token, $subscriber_code ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $subscriber_id ) ) { return $subscriber_id; } @@ -1127,7 +1127,7 @@ private function subscriber_has_access_to_product_by_signed_subscriber_id( $sign // Get products that the subscriber has access to. $result = $this->api->profile( $signed_subscriber_id ); - // If an error occured, the subscriber ID is invalid. + // If an error occurred, the subscriber ID is invalid. if ( is_wp_error( $result ) ) { return false; } @@ -1157,7 +1157,7 @@ private function subscriber_has_access_to_form_by_signed_subscriber_id( $signed_ // Get products that the subscriber has access to. $result = $this->api->profile( $signed_subscriber_id ); - // If an error occured, the subscriber ID is invalid. + // If an error occurred, the subscriber ID is invalid. if ( is_wp_error( $result ) ) { return false; } @@ -1187,7 +1187,7 @@ private function subscriber_has_access_to_tag_by_signed_subscriber_id( $signed_s // Get products that the subscriber has access to. $result = $this->api->profile( $signed_subscriber_id ); - // If an error occured, the subscriber ID is invalid. + // If an error occurred, the subscriber ID is invalid. if ( is_wp_error( $result ) ) { return false; } @@ -1217,7 +1217,7 @@ private function subscriber_has_access_to_tag_by_subscriber_id( $subscriber_id, // Get tags that the subscriber has been assigned. $tags = $this->api->get_subscriber_tags( $subscriber_id ); - // If an error occured, the subscriber ID is invalid. + // If an error occurred, the subscriber ID is invalid. if ( is_wp_error( $tags ) ) { return false; } @@ -1253,7 +1253,7 @@ public function get_subscriber_id_from_request() { $subscriber = new ConvertKit_Subscriber(); $subscriber_id = $subscriber->get_subscriber_id(); - // If an error occured, the subscriber ID in the request/cookie is not a valid subscriber. + // If an error occurred, the subscriber ID in the request/cookie is not a valid subscriber. if ( is_wp_error( $subscriber_id ) ) { return 0; } diff --git a/includes/class-convertkit-output.php b/includes/class-convertkit-output.php index f1325cb31..93a830528 100644 --- a/includes/class-convertkit-output.php +++ b/includes/class-convertkit-output.php @@ -115,7 +115,7 @@ public function register_routes() { $subscriber = new ConvertKit_Subscriber(); $subscriber_id = $subscriber->validate_and_store_subscriber_email( $email ); - // Bail if an error occured i.e. API hasn't been configured. + // Bail if an error occurred i.e. API hasn't been configured. if ( is_wp_error( $subscriber_id ) ) { return rest_ensure_response( $subscriber_id ); } @@ -202,7 +202,7 @@ public function maybe_tag_subscriber() { if ( ! is_numeric( $this->subscriber_id ) ) { $result = $api->profile( $this->subscriber_id ); - // If an error occured, the subscriber ID is invalid. + // If an error occurred, the subscriber ID is invalid. if ( is_wp_error( $result ) ) { return; } @@ -292,7 +292,7 @@ public function page_takeover() { // Get Landing Page. $landing_page = $this->landing_pages->get_html( $this->post_settings->get_landing_page() ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $landing_page ) ) { return; } @@ -372,7 +372,7 @@ public function append_form_to_content( $content ) { // Get Form HTML. $form = $this->forms->get_html( $form_id, $post_id ); - // If an error occured, it could be because the specified Form ID for the Post either: + // If an error occurred, it could be because the specified Form ID for the Post either: // - belongs to another ConvertKit account (i.e. API credentials were changed in the Plugin, but this Post's specified Form was not changed), or // - the form was deleted from the ConvertKit account. // Attempt to fallback to the default form for this Post Type. @@ -396,7 +396,7 @@ public function append_form_to_content( $content ) { // Get Form HTML. $form = $this->forms->get_html( $form_id, $post_id ); - // If an error occured again, the default form doesn't exist in this ConvertKit account. + // If an error occurred again, the default form doesn't exist in this ConvertKit account. // Just return the Post Content, unedited. if ( is_wp_error( $form ) ) { if ( $this->settings->debug_enabled() ) { @@ -840,7 +840,7 @@ public function get_subscriber_id_from_request() { $subscriber = new ConvertKit_Subscriber(); $subscriber_id = $subscriber->get_subscriber_id(); - // If an error occured, the subscriber ID in the request/cookie is not a valid subscriber. + // If an error occurred, the subscriber ID in the request/cookie is not a valid subscriber. if ( is_wp_error( $subscriber_id ) ) { return; } diff --git a/includes/class-convertkit-recaptcha.php b/includes/class-convertkit-recaptcha.php index feb7a4fba..0156a047e 100644 --- a/includes/class-convertkit-recaptcha.php +++ b/includes/class-convertkit-recaptcha.php @@ -91,7 +91,7 @@ public function verify_recaptcha( $recaptcha_response, $plugin_action ) { ) ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $response ) ) { return $response; } diff --git a/includes/class-convertkit-resource-creator-network-recommendations.php b/includes/class-convertkit-resource-creator-network-recommendations.php index 42845adaa..89af80dc9 100644 --- a/includes/class-convertkit-resource-creator-network-recommendations.php +++ b/includes/class-convertkit-resource-creator-network-recommendations.php @@ -76,7 +76,7 @@ public function enabled() { // Get script from API. $result = $this->api->recommendations_script(); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { delete_option( $this->settings_name ); return false; diff --git a/includes/class-convertkit-resource-forms.php b/includes/class-convertkit-resource-forms.php index 2a475adc6..966361277 100644 --- a/includes/class-convertkit-resource-forms.php +++ b/includes/class-convertkit-resource-forms.php @@ -71,7 +71,7 @@ public function refresh() { // Call parent refresh method. $result = parent::refresh(); - // If an error occured, maybe delete credentials from the Plugin's settings + // If an error occurred, maybe delete credentials from the Plugin's settings // if the error is a 401 unauthorized. if ( is_wp_error( $result ) ) { convertkit_maybe_delete_credentials( $result, CONVERTKIT_OAUTH_CLIENT_ID ); diff --git a/includes/class-convertkit-setup.php b/includes/class-convertkit-setup.php index 6d7ccbe97..4c65f94c5 100644 --- a/includes/class-convertkit-setup.php +++ b/includes/class-convertkit-setup.php @@ -621,7 +621,7 @@ private function maybe_get_access_token_by_api_key_and_secret() { get_site_url() ); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { return; } diff --git a/includes/class-convertkit-subscriber.php b/includes/class-convertkit-subscriber.php index bf170dae9..5f851000f 100644 --- a/includes/class-convertkit-subscriber.php +++ b/includes/class-convertkit-subscriber.php @@ -83,7 +83,7 @@ public function validate_and_store_subscriber_email( $subscriber_email ) { // Get subscriber by email, to ensure they exist. $subscriber_id = $api->get_subscriber_id( $subscriber_email ); - // Bail if no subscriber exists with the given subscriber ID, or an error occured. + // Bail if no subscriber exists with the given subscriber ID, or an error occurred. if ( is_wp_error( $subscriber_id ) ) { // Delete the cookie. $this->forget(); diff --git a/includes/cron-functions.php b/includes/cron-functions.php index f27e4d72b..c707d5615 100644 --- a/includes/cron-functions.php +++ b/includes/cron-functions.php @@ -37,7 +37,7 @@ function convertkit_refresh_token() { // Refresh the token. $result = $api->refresh_token(); - // If an error occured, don't save the new tokens. + // If an error occurred, don't save the new tokens. // Logging is handled by the ConvertKit_API_V4 class. if ( is_wp_error( $result ) ) { return; @@ -86,7 +86,7 @@ function convertkit_resource_refresh_posts() { $posts = new ConvertKit_Resource_Posts( 'cron' ); $result = $posts->refresh(); - // Bail if an error occured. + // Bail if an error occurred. if ( is_wp_error( $result ) ) { // Delete credentials if the error is a 401. convertkit_maybe_delete_credentials( $result, CONVERTKIT_OAUTH_CLIENT_ID ); diff --git a/includes/integrations/contactform7/class-convertkit-contactform7.php b/includes/integrations/contactform7/class-convertkit-contactform7.php index 7474ccd00..8fa87775a 100644 --- a/includes/integrations/contactform7/class-convertkit-contactform7.php +++ b/includes/integrations/contactform7/class-convertkit-contactform7.php @@ -151,7 +151,7 @@ public function handle_wpcf7_submit( $contact_form, $result ) { // Subscribe with inactive state. $subscriber = $api->create_subscriber( $email, $first_name, 'inactive' ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { return; } @@ -172,7 +172,7 @@ public function handle_wpcf7_submit( $contact_form, $result ) { // Subscribe. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { return; } @@ -187,7 +187,7 @@ public function handle_wpcf7_submit( $contact_form, $result ) { // Subscribe. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { return; } diff --git a/includes/integrations/forminator/class-convertkit-forminator.php b/includes/integrations/forminator/class-convertkit-forminator.php index 90156a8df..fcb84d557 100644 --- a/includes/integrations/forminator/class-convertkit-forminator.php +++ b/includes/integrations/forminator/class-convertkit-forminator.php @@ -170,7 +170,7 @@ public function maybe_subscribe( $entry, $form_id, $form_data_array ) { // Subscribe. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { return; } @@ -185,7 +185,7 @@ public function maybe_subscribe( $entry, $form_id, $form_data_array ) { // Subscribe. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { return; } diff --git a/includes/integrations/wishlist/class-convertkit-wishlist.php b/includes/integrations/wishlist/class-convertkit-wishlist.php index 4771495e6..7abc50d7c 100644 --- a/includes/integrations/wishlist/class-convertkit-wishlist.php +++ b/includes/integrations/wishlist/class-convertkit-wishlist.php @@ -141,7 +141,7 @@ private function manage_member( $member_id, $levels, $wlm_action = 'add' ) { // Get subscriber ID. $subscriber_id = $api->get_subscriber_id( $email ); - // Bail if an error occured e.g. no subscriber exists. + // Bail if an error occurred e.g. no subscriber exists. if ( is_wp_error( $subscriber_id ) ) { return $subscriber_id; } @@ -173,7 +173,7 @@ private function manage_member( $member_id, $levels, $wlm_action = 'add' ) { // Subscribe with inactive state. $subscriber = $api->create_subscriber( $email, $first_name, 'inactive' ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { break; } @@ -196,7 +196,7 @@ private function manage_member( $member_id, $levels, $wlm_action = 'add' ) { // Subscribe. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { break; } @@ -212,7 +212,7 @@ private function manage_member( $member_id, $levels, $wlm_action = 'add' ) { // Subscribe with inactive state. $subscriber = $api->create_subscriber( $email, $first_name ); - // If an error occured, don't attempt to add the subscriber to the Form, as it won't work. + // If an error occurred, don't attempt to add the subscriber to the Form, as it won't work. if ( is_wp_error( $subscriber ) ) { break; } @@ -237,7 +237,7 @@ public function get_member( $id ) { // Get WishList Member. $wlm_get_member = wlmapi_get_member( $id ); - // Bail if an error occured. + // Bail if an error occurred. if ( 0 === $wlm_get_member['success'] ) { return false; } diff --git a/wp-convertkit.php b/wp-convertkit.php index 2a69ac039..f3715ccbb 100644 --- a/wp-convertkit.php +++ b/wp-convertkit.php @@ -17,7 +17,7 @@ * License URI: https://www.gnu.org/licenses/gpl-3.0.html */ -// Bail if Kit is alread loaded. +// Bail if Kit is already loaded. if ( class_exists( 'WP_ConvertKit' ) ) { return; }