Code Duplication    Length = 3-3 lines in 2 locations

wp-admin/includes/ms.php 1 location

@@ 35-37 (lines=3) @@
32
		$file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
33
	}
34
35
	if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
36
		$file['error'] = sprintf( __( 'This file is too big. Files must be less than %1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
37
	}
38
39
	if ( upload_is_user_over_quota( false ) ) {
40
		$file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );

wp-includes/ms-functions.php 1 location

@@ 1895-1897 (lines=3) @@
1892
	if ( ! is_array( $upload ) || defined( 'WP_IMPORTING' ) || get_site_option( 'upload_space_check_disabled' ) )
1893
		return $upload;
1894
1895
	if ( strlen( $upload['bits'] )  > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
1896
		return sprintf( __( 'This file is too big. Files must be less than %d KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) );
1897
	}
1898
1899
	return $upload;
1900
}