Changeset 8770 for trunk/wp-includes/functions.php
- Timestamp:
- 08/29/2008 07:25:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r8608 r8770 331 331 * @return mixed Value set for the option. 332 332 */ 333 function get_option( $setting ) {333 function get_option( $setting, $default = false ) { 334 334 global $wpdb; 335 335 … … 342 342 $notoptions = wp_cache_get( 'notoptions', 'options' ); 343 343 if ( isset( $notoptions[$setting] ) ) 344 return false;344 return $default; 345 345 346 346 $alloptions = wp_load_alloptions(); … … 365 365 $notoptions[$setting] = true; 366 366 wp_cache_set( 'notoptions', $notoptions, 'options' ); 367 return false;367 return $default; 368 368 } 369 369 }
Note: See TracChangeset
for help on using the changeset viewer.