Hi Stefano,
Thank you for this amazing plugin!
I’m on version 3.5.9, and I think I discovered a bug in controls.php.
On line 190, where the $value_array is searched for an option name, the object you’re looking for is $value. It should be $key.
After changing that locally, somehow when going to step “(2) Go to edit this message” the plugin still doesn’t remember my options.
I’m creating my own theme.
My scenario:
I have two select boxes, one of which points to a post containing the html for the html-part of an e-mail, the other to a post containing the text version.
theme-options.php contains:
$controls->select_group('theme_newsletter_post_html', $posts_hash);
where $posts_hash contains key/value pairs like "newsletter-html-source" => "newsletter-html-source"
and likewise $controls->select_group('theme_newsletter_post_text', $posts_hash);
In theme.php:
$newsletter_post = $theme_options['theme_newsletter_post_html'][0]
$my_post = get_page_by_title( $newsletter_post, OBJECT, 'post' );
setup_postdata($my_post);
echo $my_post->post_content;
plus some context.
Can you tell why the options don’t survive through to step 2?
Best,
Paul Bakker