Theme settings for all the default WordPress themes#831
Conversation
| 'page_background_color' => esc_html__( 'Page Background Color', 'stream' ), | ||
| ), | ||
|
|
||
| 'twentyeleven_theme_options' => array( |
There was a problem hiding this comment.
Why do we include a second array of labels here? How are twentyeleven options different?
There was a problem hiding this comment.
Twentyeleven theme has "Twenty Eleven Theme Options" page in Appearance menu and settings listed there are saved in "twentyeleven_theme_options" option
There was a problem hiding this comment.
What do you think of this - just saving a generic "Twenty Eleven Theme Options" setting - instead of going into detail?
I'm not sure it's worth it for the added code complication.
What do you think?
|
Got these two when updating Media settings (for the first time): What would they be referring to? |
|
I also got heaps of these ones, when updating the "Front Page displays" setting for the first time:
Can we exclude all settings that end with a |
|
Options "medium_large_size_w" and "image_default_link_type" are reset to empty string every time Media settings are saved because there is no input fields to edit them and they are present in $whitelist_options. I assume they are either internal or legacy. I wrote a code that ignores these options. |
|
As for the duplicated entries - when you select "Keep Records Indefinitely" then "Keep Records for" setting is cleared. When you clear "Keep Records Indefinitely" checkbox then "Keep Records for" setting is set to 30 days (default). So, when you update "Keep Records Indefinitely" setting then "Keep Records for" is updated as well. |
|
|
||
| $ignored = array( | ||
| 'image_default_link_type', | ||
| 'medium_large_size_w', |
There was a problem hiding this comment.
Is there such a thing as small_medium_size_w or other size variations?
There was a problem hiding this comment.
No, there is not. "medium_large_size_w" and "medium_large_size_w" are the only options in this case.
|
@marcin-lawrowski Re: Duplicated entries: Perhaps an easy and less confusing solution would be to simply change the label for "Keep Records for" to "Record TTL". The Stream Settings screen would remain the same. Thoughts? |
|
Just to pipe in...
@lukecarbis I think that TTL is a technical phrase that I wouldn't expect many people to understand.
@marcin-lawrowski Two alternatives that pop up in my head:
|
|
@Chacha I also think that TTL phrase could be too difficult, so I decided to hide "Keep Records for" option if the checkbox is selected. Now there is only one Stream log when an user selects / deselects the checkbox. |
Theme settings for all the default WordPress themes

Fixes #828