[theme-reviewers] WP.org theme preview

Chip Bennett chip at chipbennett.net
Wed Aug 3 17:55:04 UTC 2011

Otto describes one method in this WPSE

Assuming you're using the settings API, then you should use the isset function
in if statements to account for the missing-field case. Something like this:

if (!isset($options['name'])) {
//... the option isn't set to something
} else {
//... the option is set to something

And handle each case of actual *use* of the option accordingly.

It would probably work in this case.


On Wed, Aug 3, 2011 at 12:50 PM, c.bavota <c at bavotasan.com> wrote:

> Hey all,
> I just had my theme PressWork approved on WP.org but the theme preview
> looks a little wacky since none of the options are set until it is activated
> for the first time. Is there any way to test how the theme will preview
> before I upload the next version? Or are there any guidelines for settings
> up some defaults for the preview?
> Any help/suggestions would be greatly appreciated.
> Thanks.
> c.bavota
> Web Programmer
> c at bavotasan.com
> http://bavotasan.com
> http://themes.bavotasan.com
> Become an Affiliate and earn 40% commission on sale referrals
> http://themes.bavotasan.com/affiliates
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110803/b017d306/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6061 bytes
Desc: not available
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110803/b017d306/attachment-0001.png>

More information about the theme-reviewers mailing list