Apply default option to colors array

This commit is contained in:
Brian Miyaji
2015-05-20 12:21:22 +10:00
parent 3708a02fa9
commit a7e26c1308

View File

@@ -215,7 +215,7 @@ class SP_Settings_General extends SP_Settings_Page {
'link' => $link,
);
$options = get_option( 'themeboy' );
$options = (array) get_option( 'themeboy', array() );
$options = array_merge( $options, $colors );
update_option( 'themeboy', $options );
}