WordPress.org

Make WordPress Core

Changeset 18152


Ignore:
Timestamp:
06/05/11 19:53:31 (4 years ago)
Author:
nacin
Message:

Use default argument for get_option(). props dcowgill, westi. fixes #17686.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r18141 r18152  
    178178 */ 
    179179function twentyeleven_get_theme_options() { 
    180     $options = get_option( 'twentyeleven_theme_options' ); 
    181     if ( false === $options ) 
    182         return twentyeleven_get_default_theme_options(); 
    183     return $options; 
     180    return get_option( 'twentyeleven_theme_options', twentyeleven_get_default_theme_options() ); 
    184181} 
    185182 
Note: See TracChangeset for help on using the changeset viewer.