-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Describe the bug
If a user has more than 100 lists defined in MailChimp the plugin only fetches details for 100 of them making it impossible to connect the plugin to the other lists.
There are several places in the code where this limit is used - either for fetching the list from MailChimp or for populating the selection dropdown. Usually paired with a code comment along the lines of "// we *could* support paging, but 100 is more than enough for now." - well 100 isn't enough anymore :)
I'd suggest a quick fix might be to just bump the instances of this limit up to 150 or 200 to help your biggest customers. Maybe sort the list alphabetically to make it easier to navigate. Pagination seems like a big ask unless it's to reduce load or traffic.
Steps to Reproduce
- create more than 100 lists in a MailChimp account
- install the plugin and connect it to the MailChimp account
- copy the HTML from /wp-admin/admin.php?page=mailchimp_sf_options into an editor
- note that there are 101 (100 plus the 'select a list' placeholder) entries in the #mc_list_id dropdown
Screenshots, screen recording, code snippet
Not the only instance of this hard-coded limit:
Environment information
Plugin version 2.0.0
WP version 6.8.3
WordPress information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct