You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b8f18d4
Browse filesBrowse the repository at this point in the historyBrowse files
Subscribers: remember the chosen page size (#53903)
* Subscribers: remember the chosen page size
The page size lived only in the URL, so reopening the Subscribers screen reset
it to 20. Save it per site in localStorage and use it when the URL has none.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MFjM4HdEDHT7uiZDdjhUMQ
* Subscribers: don't overwrite the remembered page size from a link
Opening a link with a pp param saved that size on mount, replacing the admin's
own choice. Save only when the page size changes after the screen opens.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MFjM4HdEDHT7uiZDdjhUMQ
* Subscribers: scope the remembered page size to site and user
Two people sharing a browser, or sites without a WordPress.com id, shared one
remembered size. Key it on both ids and skip storage when either is unknown.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MFjM4HdEDHT7uiZDdjhUMQ
* Subscribers: save the page size from the setter, not an effect
StrictMode runs effects twice on mount, so the skip-first-save ref let
the second run through: opening the screen stored the default, and a
shared link's pp overwrote the remembered size. Saving only when the
admin changes the page size avoids both. Tests now render in StrictMode.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MFjM4HdEDHT7uiZDdjhUMQ
* Subscribers: reset the site mock before each page-size test
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MFjM4HdEDHT7uiZDdjhUMQ
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments