Use default argument for get_option(). props dcowgill, westi. fixes #17686.
git-svn-id: https://develop.svn.wordpress.org/trunk@18152 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9565d6364b
commit
aba7c4e9ce
@ -177,10 +177,7 @@ function twentyeleven_get_default_theme_options() {
|
||||
* @since Twenty Eleven 1.0
|
||||
*/
|
||||
function twentyeleven_get_theme_options() {
|
||||
$options = get_option( 'twentyeleven_theme_options' );
|
||||
if ( false === $options )
|
||||
return twentyeleven_get_default_theme_options();
|
||||
return $options;
|
||||
return get_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user