Skip to content

Fix folder support in friend-list widget and block#607

Merged
akirk merged 1 commit intomainfrom
fix-friend-list-widget-folders
Mar 24, 2026
Merged

Fix folder support in friend-list widget and block#607
akirk merged 1 commit intomainfrom
fix-friend-list-widget-folders

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Mar 24, 2026

Summary

  • Default the friend-list widget display mode to "Grouped by Folder" so folders appear without manual configuration (matching the block theme sidebar behavior)
  • Fix array_merge order so per-folder accordion widget IDs aren't overwritten by sidebar args (each folder's open/close state now tracked independently)
  • Show the folder name as headline when filtering by a specific folder, in both the classic widget and the friends-list block

Test plan

  • Add the Friend List widget to the sidebar, verify it defaults to "Grouped by Folder" mode
  • Create folders and assign subscriptions, verify they appear grouped in the widget
  • In widget settings, choose "Subscriptions" display + pick a specific folder, verify the folder name shows as the title
  • In the block editor, add a Friends List block with a folder attribute, verify the folder name heading appears

Test on WordPress Playground

- Default widget display mode to "folders" so folders show without manual configuration
- Fix array_merge order so per-folder widget IDs aren't overwritten by sidebar args
- Show folder name as headline when filtering by a specific folder (widget and block)
@github-actions
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 ecb5d90 into main Mar 24, 2026
25 checks passed
@akirk akirk deleted the fix-friend-list-widget-folders branch March 24, 2026 18:39
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.

1 participant