moved nav button functionality from functions.php into trestle-functions.php, fixed default Trestle options error that occurred when first activating Trestle

This commit is contained in:
Mickey Kay
2013-11-14 14:26:55 -08:00
parent 2c2b86f147
commit 38a1146d8f
4 changed files with 1873 additions and 5 deletions
+5 -1
View File
@@ -29,17 +29,21 @@ function trestle_custom_defaults( $defaults ) {
$defaults[$k] = $v;
// Update actual options if they don't yet exist
if ( !array_key_exists( $k, $options ) )
if ( $options && !array_key_exists( $k, $options ) )
$options[$k] = $v;
}
update_option( GENESIS_SETTINGS_FIELD, $options );
//
// Return modified default array
return $defaults;
}
add_filter( 'genesis_theme_settings_defaults', 'trestle_custom_defaults' );
// Also perform
/**
* Sanitization