Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not save default settings to database #110

Closed
middlesister opened this issue Jul 9, 2014 · 0 comments
Closed

do not save default settings to database #110

middlesister opened this issue Jul 9, 2014 · 0 comments
Milestone

Comments

@middlesister
Copy link
Member

new in Theme Review Guidelines for 3.9
See http://make.wordpress.org/themes/2014/07/09/using-sane-defaults-in-themes/

@middlesister middlesister added this to the 2.0 milestone Jul 10, 2014
middlesister added a commit that referenced this issue Jul 26, 2014
Use wp_parse_args() to use default theme options even when no
options have been saved to the database yet.

See #110
middlesister added a commit that referenced this issue Jul 26, 2014
Previous use of thematic_get_theme_opt() caused an infinite
loop since thematic_get_theme_opt() now fallbacks to
thematic_default_opt() which calls thematic_default_theme_layout().

Using thematic_get_wp_opt() ensures we actually check if database
option exists or not.

See #110
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

No branches or pull requests

1 participant