WordPress Maintenance Manager fix stops site list scrolling to top after every action
A bug in WordPress Maintenance Manager caused the site list to jump back to the top of the page whenever a site was deleted or certain other operations were performed. The root cause was that six separate call sites invoked the fetchSites() function without passing the keepScroll=true argument, causing it to default to false and trigger a scroll-to-top each time. The scroll-preservation mechanism itself had been correctly implemented since version 1.6.6, but newer call sites added for features like thumbnail fetching, category deletion, tag deletion, and maintenance completion never adopted the established convention. The fix was applied uniformly across all six locations by explicitly passing fetchSites(true, true), while the initial app-load call was intentionally left unchanged since resetting scroll position on startup is the correct behavior. The case highlights the importance of reviewing how existing callers pass arguments before introducing new call sites to a shared function.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in