Doug Stewart avatar Doug Stewart committed 384e9af

Did I... did I just actually fix a bug that's been in here for AGES?

YES I DID.

Comments (0)

Files changed (1)

includes/functions/options.php

 
 	// Check to see whether we've been installed previously
 	$lblg_stored_options = get_option( $lblg_shortname . '_theme_options' );
-	
+
 	// Pull the default options from the parent-options.php and, optionally, the
 	// child-options.php file, if we're running as a child theme.
 	$lblg_default_options = lblg_get_default_options();
 	$lblg_defaults = lblg_get_options_from_defaults( $lblg_default_options );
-	
+
 	if( ( false === $lblg_stored_options ) || ( '' == $lblg_stored_options ) ){
 		// We haven't been installed yet.
 		$lblg_options = $lblg_defaults;
-	} elseif( (version_compare( $lblg_version, $lblg_stored_options['version'], '!=' )) || (count($lblg_stored_options) != count($lblg_default_options))) {
+	} elseif( (version_compare( $lblg_version, $lblg_stored_options['version'], '!=' )) || (count($lblg_stored_options) != count($lblg_defaults))) {
 		// New version of the options have been detected. Let's reload.
-		$lblg_options = $lblg_stored_options + $lblg_default_options;
+		$lblg_options = $lblg_stored_options + $lblg_defaults;
 	} else {
 		// We've previously been installed and the version number
 		// hasn't changed. Assume no change and act accordingly.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.