Skip to content
Browse files

Make sure to check that the theme setting doesn't exist at all before…

… returning false.
  • Loading branch information...
1 parent fda2d6f commit 1880325beaaed16584f73f4331be7845ad71e820 @justintadlock committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions/settings.php
View
4 functions/settings.php
@@ -44,8 +44,8 @@ function hybrid_get_setting( $option = '' ) {
if ( !isset( $hybrid->settings[ $option ] ) && isset( $defaults[ $option ] ) )
$hybrid->settings[ $option ] = $defaults[ $option ];
- /* Else, just return false. */
- else
+ /* If no option is found at this point, return false. */
+ if ( !isset( $hybrid->settings[ $option ] ) )
return false;
/* If the specific option is an array, return it. */

0 comments on commit 1880325

Please sign in to comment.
Something went wrong with that request. Please try again.