Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Move Theme Options to Customizer #34

Merged
merged 18 commits into from
Mar 19, 2019
Merged

Move Theme Options to Customizer #34

merged 18 commits into from
Mar 19, 2019

Conversation

jaymcp
Copy link
Member

@jaymcp jaymcp commented Dec 11, 2018

Proposed Changes

Since 2015, it's a requirement that themes use the Customizer for theme settings, rather than a custom options page. This PR migrates existing theme options to the Customizer, whilst still allowing pre-defined settings to be used as a fallback.
Old functions which declared the theme options page & settings have been deprecated and unhooked.

One thing it doesn't address is user education. I'd like input on that; should we:

  • replace the options page link with a link to the Customizer
  • add an admin notice to warn users
  • update the readme
    ?

This is a wp.org requirement for themes that
declare their own settings.

Fallbacks have been added for those who had
previously set data using theme options;
Customizer settings take priority, but will
gracefully degrade.
Theme Options related functions have been
deprecated and unhooked.
@jaymcp jaymcp added the enhancement New feature or request label Dec 11, 2018
@jaymcp jaymcp requested a review from ampersarnie December 11, 2018 17:34
@jaymcp jaymcp changed the base branch from master to develop December 11, 2018 17:34
@jaymcp
Copy link
Member Author

jaymcp commented Jan 14, 2019

To answer the user-education question posited in my original message, I've since updated this PR.
The menu page has been re-added but, when navigated to, a redirect to the customiser will trigger.
I would say that this is sufficient for the time being, and we can look to remove this altogether in the next minor release.

@jaymcp jaymcp added this to the v1.1.0 milestone Jan 29, 2019
@jaymcp jaymcp merged commit 4524239 into develop Mar 19, 2019
@jaymcp jaymcp deleted the feature/theme-options branch March 19, 2019 15:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant