Code Duplication    Length = 9-9 lines in 4 locations

src/wp-admin/includes/template.php 2 locations

@@ 1221-1229 (lines=9) @@
1218
		$page = 'general';
1219
	}
1220
1221
	if ( 'privacy' == $page ) {
1222
		_deprecated_argument( __FUNCTION__, '3.5.0',
1223
			/* translators: %s: privacy */
1224
			sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
1225
				'privacy'
1226
			)
1227
		);
1228
		$page = 'reading';
1229
	}
1230
1231
	$wp_settings_sections[$page][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback);
1232
}
@@ 1282-1290 (lines=9) @@
1279
		$page = 'general';
1280
	}
1281
1282
	if ( 'privacy' == $page ) {
1283
		_deprecated_argument( __FUNCTION__, '3.5.0',
1284
			/* translators: %s: privacy */
1285
			sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
1286
				'privacy'
1287
			)
1288
		);
1289
		$page = 'reading';
1290
	}
1291
1292
	$wp_settings_fields[$page][$section][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $args);
1293
}

src/wp-includes/option.php 2 locations

@@ 1926-1934 (lines=9) @@
1923
		$option_group = 'general';
1924
	}
1925
1926
	if ( 'privacy' == $option_group ) {
1927
		_deprecated_argument( __FUNCTION__, '3.5.0',
1928
			/* translators: %s: privacy */
1929
			sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
1930
				'privacy'
1931
			)
1932
		);
1933
		$option_group = 'reading';
1934
	}
1935
1936
	$new_whitelist_options[ $option_group ][] = $option_name;
1937
	if ( ! empty( $args['sanitize_callback'] ) ) {
@@ 1972-1980 (lines=9) @@
1969
		$option_group = 'general';
1970
	}
1971
1972
	if ( 'privacy' == $option_group ) {
1973
		_deprecated_argument( __FUNCTION__, '3.5.0',
1974
			/* translators: %s: privacy */
1975
			sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
1976
				'privacy'
1977
			)
1978
		);
1979
		$option_group = 'reading';
1980
	}
1981
1982
	$pos = array_search( $option_name, (array) $new_whitelist_options[ $option_group ] );
1983
	if ( $pos !== false ) {