Merge with existing options if available

This commit is contained in:
Brian Miyaji
2015-05-26 17:13:26 +10:00
parent 81bc152cc1
commit e7f9a9521e

View File

@@ -215,7 +215,8 @@ class SP_Settings_General extends SP_Settings_Page {
'link' => $link,
);
$options = get_option( 'themeboy', array() );
// Merge with existing options if available
$options = get_option( 'themeboy' );
if ( is_array( $options ) ) {
$colors = array_merge( $options, $colors );
}