Code Duplication    Length = 10-10 lines in 2 locations

src/wp-includes/option.php 2 locations

@@ 97-106 (lines=10) @@
94
				if ( is_object( $row ) ) {
95
					$value = $row->option_value;
96
					wp_cache_add( $option, $value, 'options' );
97
				} else { // option does not exist, so we must cache its non-existence
98
					if ( ! is_array( $notoptions ) ) {
99
						 $notoptions = array();
100
					}
101
					$notoptions[$option] = true;
102
					wp_cache_set( 'notoptions', $notoptions, 'options' );
103
104
					/** This filter is documented in wp-includes/option.php */
105
					return apply_filters( "default_option_{$option}", $default, $option, $passed_default );
106
				}
107
			}
108
		}
109
	} else {
@@ 1169-1178 (lines=10) @@
1166
				$value = $row->meta_value;
1167
				$value = maybe_unserialize( $value );
1168
				wp_cache_set( $cache_key, $value, 'site-options' );
1169
			} else {
1170
				if ( ! is_array( $notoptions ) ) {
1171
					$notoptions = array();
1172
				}
1173
				$notoptions[ $option ] = true;
1174
				wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
1175
1176
				/** This filter is documented in wp-includes/option.php */
1177
				$value = apply_filters( 'default_site_option_' . $option, $default, $option, $network_id );
1178
			}
1179
		}
1180
	}
1181