Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/class-wp-theme.php 2 locations

@@ 1148-1152 (lines=5) @@
1145
		if ( ! is_multisite() )
1146
			return true;
1147
1148
		if ( 'both' == $check || 'network' == $check ) {
1149
			$allowed = self::get_allowed_on_network();
1150
			if ( ! empty( $allowed[ $this->get_stylesheet() ] ) )
1151
				return true;
1152
		}
1153
1154
		if ( 'both' == $check || 'site' == $check ) {
1155
			$allowed = self::get_allowed_on_site( $blog_id );
@@ 1154-1158 (lines=5) @@
1151
				return true;
1152
		}
1153
1154
		if ( 'both' == $check || 'site' == $check ) {
1155
			$allowed = self::get_allowed_on_site( $blog_id );
1156
			if ( ! empty( $allowed[ $this->get_stylesheet() ] ) )
1157
				return true;
1158
		}
1159
1160
		return false;
1161
	}