Skip to content

Conversation

@norcross
Copy link
Member

@norcross norcross commented Jun 23, 2025

this PR updates the current settings implementation for the avatar source. this breaks up the settings and moves to two separate functions.

  • load_single_site_avatar_settings is for single sites, and fully utilizes the Settings API
  • wpmu_options and update_wpmu_options to handle the multisite

the setting key is currently set as a serialized array, and this converts it to a single key. this also removes the CSS file that was added for the stand-alone settings page.

this addresses #70

@norcross norcross requested review from afragen, joedolson and rmccue June 23, 2025 17:34
@afragen

This comment was marked as outdated.

Copy link
Contributor

@afragen afragen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work great. Setting now under Discussions where Avatars are chosen.

Copy link
Member

@joedolson joedolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should do something to handle previous settings.

norcross added 5 commits July 17, 2025 15:34
Signed-off-by: Norcross <andrew.norcross@gmail.com>
Signed-off-by: Norcross <andrew.norcross@gmail.com>
Signed-off-by: Norcross <andrew.norcross@gmail.com>
Signed-off-by: Norcross <andrew.norcross@gmail.com>
Signed-off-by: Norcross <andrew.norcross@gmail.com>
@norcross norcross force-pushed the feature/multisite-avatar-settings branch from 40bad17 to 70ce59a Compare July 17, 2025 19:34
@joedolson joedolson self-requested a review July 17, 2025 20:36
Signed-off-by: Norcross <andrew.norcross@gmail.com>
@norcross norcross merged commit 80d5607 into main Jul 17, 2025
45 of 46 checks passed
@norcross norcross deleted the feature/multisite-avatar-settings branch July 17, 2025 20:43
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.

6 participants