Commit Graph

3 Commits

Author SHA1 Message Date
Michael Fields c30057cd92 _s: Only set theme options if necessary. fixes #1151
* Remove call to add_option() during admin_init.
* Rework _s_get_theme_options() so that it merges default values into the stored settings.
* Rework _s_theme_options_validate() to only return recognized values if they are present in the $_POST request - only store what is absolutely necessary.
* Updated the docs in a few places.
* Note: _s now requires PHP5. see L161 array_intersect_key().


git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9483 d957f892-c61d-0410-b221-f235e6eecf30
2012-04-23 21:35:30 +00:00
Ian Stewart 32cdefb9ac _s: removing reference to a help doc that isn't there and an unneeded variable check
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8941 d957f892-c61d-0410-b221-f235e6eecf30
2012-02-14 17:39:26 +00:00
Ian Stewart 803ddfe86c _s: incorporating a revamped version of our sample theme options 2012-01-13 04:02:59 +00:00