Skip to content

Add AJAX feed refresh on the frontend#631

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

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

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Mar 28, 2026

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
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 28, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Friends Main Feed Not Updating

1 participant