Skip to content

Fix: Export theme settings now include blog name and description options#307

Open
RachelRVasquez wants to merge 2 commits into
strangerstudios:devfrom
RachelRVasquez:export-site-identity-options
Open

Fix: Export theme settings now include blog name and description options#307
RachelRVasquez wants to merge 2 commits into
strangerstudios:devfrom
RachelRVasquez:export-site-identity-options

Conversation

@RachelRVasquez
Copy link
Copy Markdown
Collaborator

@RachelRVasquez RachelRVasquez commented May 28, 2026

All Submissions:

Changes proposed in this Pull Request:

Fixed: Site Title (blogname) and Site Tagline (blogdescription) were missing because WordPress stores them as options, not theme mods — added both to $option_keys so they're now exported via get_option().

The site logo and site icon won't export/import by just passing the options from one environment to another due to attachment IDs/paths being different. This would have to be a separate feature if it's something we want to pursue. For now, I'm removing site icon from the export functionality so it doesn't work anyway.

ℹ️ I also noticed if I used the block versions, for example, the site logo and added a logo when the setting in Customizer was empty, it properly updates the Customizer setting for it. As far as I understand, the blocks for Site Title, Site Tagline and Site Logo either use the same option name or sync so that regardless of whether it's set from Customizer or the block, it'll be included in our export.

How to test the changes in this Pull Request:

  1. You need two Memberlite environments.
  2. In environment A, make sure you have a logo, title, tagline and icon set under Customize > Site Identity.
  3. Go to Memberlite > Tools > Export Theme Settings with the "Theme Settings" checkbox checked. Click the "Download Export File" button.
  4. On environment B, first note that any existing theme mods will be written once you import. If that's okay, go to Memberlite > Tools > Import Theme Settings.
  5. Upload the JSON file that was generated when you exported from environment A. Click the "Import Theme Settings" checkbox.
  6. Check your customizer settings on environment B to confirm that the theme_mods were properly imported.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Export theme settings now include blog name and description options.

… in export, site icon was already there and logo is part of the theme_mods
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the theme settings export so it also includes the site’s title and tagline, which are stored in WordPress as options (blogname, blogdescription) rather than theme mods.

Changes:

  • Add blogname and blogdescription to the default $option_keys list exported via get_option().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RachelRVasquez RachelRVasquez marked this pull request as ready for review May 28, 2026 17:22
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.

2 participants