@@ 431-434 (lines=4) @@ | ||
428 | ||
429 | // Make sure the option doesn't already exist. We can check the 'notoptions' cache before we ask for a db query |
|
430 | $notoptions = wp_cache_get( 'notoptions', 'options' ); |
|
431 | if ( !is_array( $notoptions ) || !isset( $notoptions[$option] ) ) |
|
432 | /** This filter is documented in wp-includes/option.php */ |
|
433 | if ( apply_filters( "default_option_{$option}", false, $option, false ) !== get_option( $option ) ) |
|
434 | return false; |
|
435 | ||
436 | $serialized_value = maybe_serialize( $value ); |
|
437 | $autoload = ( 'no' === $autoload || false === $autoload ) ? 'no' : 'yes'; |
|
@@ 1256-1260 (lines=5) @@ | ||
1253 | ||
1254 | // Make sure the option doesn't already exist. We can check the 'notoptions' cache before we ask for a db query |
|
1255 | $notoptions = wp_cache_get( $notoptions_key, 'site-options' ); |
|
1256 | if ( ! is_array( $notoptions ) || ! isset( $notoptions[ $option ] ) ) { |
|
1257 | if ( false !== get_network_option( $network_id, $option, false ) ) { |
|
1258 | return false; |
|
1259 | } |
|
1260 | } |
|
1261 | ||
1262 | $value = sanitize_option( $option, $value ); |
|
1263 |