Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated WordPress Libraries to 1.3.9 #102

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"license": "GPLv3",
"require": {
"convertkit/convertkit-wordpress-libraries": "1.3.8"
"convertkit/convertkit-wordpress-libraries": "1.3.9"
},
"require-dev": {
"lucatume/wp-browser": "^3.0",
Expand Down
38 changes: 0 additions & 38 deletions includes/class-ckgf-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,44 +39,6 @@ public function __construct( $api_key = false, $api_secret = false, $debug = fal
$this->log = new ConvertKit_Log( $this->plugin_path );
}

// Define translatable / localized error strings.
// WordPress requires that the text domain be a string (e.g. 'convertkit') and not a variable,
// otherwise localization won't work.
$this->error_messages = array(
'form_subscribe_form_id_empty' => __( 'form_subscribe(): the form_id parameter is empty.', 'convertkit' ),
'form_subscribe_email_empty' => __( 'form_subscribe(): the email parameter is empty.', 'convertkit' ),

'sequence_subscribe_sequence_id_empty' => __( 'sequence_subscribe(): the sequence_id parameter is empty.', 'convertkit' ),
'sequence_subscribe_email_empty' => __( 'sequence_subscribe(): the email parameter is empty.', 'convertkit' ),

'tag_subscribe_tag_id_empty' => __( 'tag_subscribe(): the tag_id parameter is empty.', 'convertkit' ),
'tag_subscribe_email_empty' => __( 'tag_subscribe(): the email parameter is empty.', 'convertkit' ),

'get_subscriber_by_email_email_empty' => __( 'get_subscriber_by_email(): the email parameter is empty.', 'convertkit' ),
/* translators: Email Address */
'get_subscriber_by_email_none' => __( 'No subscriber(s) exist in ConvertKit matching the email address %s.', 'convertkit' ),

'get_subscriber_by_id_subscriber_id_empty' => __( 'get_subscriber_by_id(): the subscriber_id parameter is empty.', 'convertkit' ),

'get_subscriber_tags_subscriber_id_empty' => __( 'get_subscriber_tags(): the subscriber_id parameter is empty.', 'convertkit' ),

'unsubscribe_email_empty' => __( 'unsubscribe(): the email parameter is empty.', 'convertkit' ),

'get_all_posts_posts_per_request_bound_too_low' => __( 'get_all_posts(): the posts_per_request parameter must be equal to or greater than 1.', 'convertkit' ),
'get_all_posts_posts_per_request_bound_too_high' => __( 'get_all_posts(): the posts_per_request parameter must be equal to or less than 50.', 'convertkit' ),

'get_posts_page_parameter_bound_too_low' => __( 'get_posts(): the page parameter must be equal to or greater than 1.', 'convertkit' ),
'get_posts_per_page_parameter_bound_too_low' => __( 'get_posts(): the per_page parameter must be equal to or greater than 1.', 'convertkit' ),
'get_posts_per_page_parameter_bound_too_high' => __( 'get_posts(): the per_page parameter must be equal to or less than 50.', 'convertkit' ),

/* translators: HTTP method */
'request_method_unsupported' => __( 'API request method %s is not supported in ConvertKit_API class.', 'convertkit' ),
'request_rate_limit_exceeded' => __( 'ConvertKit API Error: Rate limit hit.', 'convertkit' ),
'request_internal_server_error' => __( 'ConvertKit API Error: Internal server error.', 'convertkit' ),
'request_bad_gateway' => __( 'ConvertKit API Error: Bad gateway.', 'convertkit' ),
'response_type_unexpected' => __( 'ConvertKit API Error: The response is not of the expected type array.', 'convertkit' ),
);

}

}