This paper reports on studies of adsorption in energetically and geometrically non-uniform slit-like pores. The calculations have been carried out by the density functional approach. We have studied the influence of both types of non-uniformity on the capillary condensation. We have found that the pore non-uniformity may qualitatively change the phase diagram of confined fluids. In particular, geometrical non-uniformity may lead to a splitting of the hysteresis loop into two separate parts, associated with the filling of different parts of the pore.