Skip to content

Restore Add Friend admin page#622

Merged
akirk merged 1 commit intomainfrom
fix/restore-add-friend-page
Mar 26, 2026
Merged

Restore Add Friend admin page#622
akirk merged 1 commit intomainfrom
fix/restore-add-friend-page

Conversation

@akirk
Copy link
Owner

@akirk akirk commented Mar 26, 2026

Summary

  • The Add Friend page (admin.php?page=add-friend) was accidentally removed in Remove Friendship functionality #515 (Remove Friendship functionality), while the intent was to move it to the frontend (Add a Friend on the Frontend #516 — still pending)
  • All existing links (admin bar, bookmarklets, welcome page, blocks, notifications) still point to this page, causing an "access denied" error when users try to follow someone from a boosted post or elsewhere

Fixes #619

Changes

  • Re-registers the add-friend submenu page
  • Restores render_admin_add_friend(), process_admin_add_friend(), and process_admin_add_friend_response() — simplified to subscription-only (no friendship request, codeword, message, or role selection)
  • Restores templates/admin/select-feeds.php (feed selection step 2) without friendship UI
  • Restores templates/admin/latest-friends.php (recent subscriptions table)

Test plan

  • Visit admin.php?page=add-friend — should show the Add Friend form instead of access denied
  • Enter a URL and click Next — should discover feeds and show selection
  • Use Quick Subscribe — should create subscription directly
  • Click Follow on a boosted post — should navigate to Add Friend page with URL pre-filled

Test in WordPress Playground

The Add Friend page was accidentally removed in #515 (Remove Friendship
functionality). The intent was to move it to the frontend (#516), but
until that lands, the admin page is needed. All links throughout the
plugin still point to admin.php?page=add-friend, causing an access
denied error.

Restores the page as subscription-only (no friendship request flow).
@akirk akirk merged commit 9cba4c3 into main Mar 26, 2026
25 checks passed
@akirk akirk deleted the fix/restore-add-friend-page branch March 26, 2026 21:49
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.

Weird access denied error on attempt to click Follow on account via post boosted by someone in my Friends feed

1 participant