Keep existing options when saving colors
This commit is contained in:
@@ -215,7 +215,9 @@ class SP_Settings_General extends SP_Settings_Page {
|
|||||||
'link' => $link,
|
'link' => $link,
|
||||||
);
|
);
|
||||||
|
|
||||||
update_option( 'themeboy', $colors );
|
$options = get_option( 'themeboy' );
|
||||||
|
$options = array_merge( $options, $colors );
|
||||||
|
update_option( 'themeboy', $options );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,8 +228,8 @@ class SP_Settings_General extends SP_Settings_Page {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function timezone_setting() {
|
public function timezone_setting() {
|
||||||
$current_offset = get_option('gmt_offset');
|
$current_offset = get_option( 'gmt_offset' );
|
||||||
$tzstring = get_option('timezone_string');
|
$tzstring = get_option( 'timezone_string' );
|
||||||
|
|
||||||
$check_zone_info = true;
|
$check_zone_info = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user