Oh, I think this might actually resolve itself after a page load. Does it require that to pull over the settings rather than doing it during the upgrade process? I think it might be resolved after visiting the wp-pagenavi settings page? I’m going to do a bit more testing.
OK, it looks like the update needs any page in the back end to be reloaded for the settings to transferred. So the failure mode is for the plugin to be automatically updated without another back-end page load to transfer the settings. Confirmed on Multisite where the plugin was updated, visiting a back-end page on the main site didn’t transfer the settings, visiting a back-end page on the affected sub-site did transfer the settings.
The upgrade process should cover it. If not, when you save the settings again, it should work.
I think that’s the thing – the upgrade process doesn’t cover it when the update is automatic and you’re not doing other things in the back end, so for people who have automatic updates turned on, the pagination will render incorrectly until they log in to the back end of their site.
AI written tests for https://github.com/lesterchan/wp-pagenavi/blob/master/tests/test-upgrade.php it but there there is no way to cover all edge cases, so there bound to be some misses. I am not sure how WP auto update works for plugin, but by right the upgrade process should run.