Skip to content

Add AJAX feed refresh on the frontend - #631

Merged
akirk merged 2 commits into
mainfrom
frontend-feed-refresh
Mar 28, 2026
Merged

Add AJAX feed refresh on the frontend#631
akirk merged 2 commits into
mainfrom
frontend-feed-refresh

Conversation

@akirk

@akirk akirk commented Mar 28, 2026

Copy link
Copy Markdown
Owner

Partially fixes #596.

Summary

  • Replace the wp-admin redirect for feed refresh with an inline AJAX call
  • The Refresh chip on the author header is now always visible (not gated behind friends_debug)
  • Shows "Refreshing" / "Refreshed" feedback and reloads the page after fetching new posts

Test plan

  • Visit a friend's feed page and click the "Refresh" chip
  • Verify it shows "Refreshing", then "Refreshed", then reloads with new posts
Replace the wp-admin redirect for feed refresh with an inline AJAX
call. The Refresh chip is now always visible (not gated behind
friends_debug) and reloads the page after fetching new posts.
@github-actions

github-actions Bot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch WordPress Playground

This will install and activate the plugin with the changes from this PR.

@akirk
akirk merged commit ec2fa12 into main Mar 28, 2026
25 checks passed
@akirk
akirk deleted the frontend-feed-refresh branch March 28, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant