index 552836e9..52dd59a1 100644
--- a/wp-content/plugins/getanewsletter/GAPI.class.php
+++ b/wp-content/plugins/getanewsletter/GAPI.class.php
@@ -923,11 +923,15 @@ class GAPI
function subscription_lists_list()
{
- $ok = $this->call_api('GET', 'lists/');
- if ($ok) {
- $this->result = $this->body['results'];
- }
-
+ $result = [];
+ $page = 1;
+ do {
+ $ok = $this->call_api('GET', 'lists/?page=' . $page++);
+ if ($ok) {
+ $result = array_merge($result, $this->body['results']);
+ }
+ } while($ok && $this->body['next']);
+ $this->body['results'] = $this->result = $result;
return $ok;
}
}
]]>
Just wanted to add that this plug in breaks the built in theme editor in WP. If you get “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.” while trying to update, deactivate this plug in.
See https://wpengine.co.uk/support/php-editor-errors-wordpress-4-9-higher/ for futher reference on the specific error.
]]>Does it support or could be added to WooCommerce checkout to get the email from customers in an easy way such as mailchimp have?
]]>