The Tao-Perdew-Staroverov-Scuseria (TPSS) meta-generalized-gradient-approximation (MGGA) and its revised version, the revTPSS, are implemented self-consistently within the framework of the projector-augmented-wave (PAW) method, using a plane wave basis set.Both TPSS and revTPSS yield accurate atomization energies for the molecules in the AE6 set, better than those of the standard Perdew-Burke-Ernzerhof (PBE) generalized-gradientapproximation. For lattice constants and bulk moduli of 20 diverse solids, revTPSS performs much better than PBE, and on average as well as PBEsol and Armiento-Mattsson (AM05), GGAs designed for solids. The latter two overestimate the atomization energies for molecules to an unacceptable degree. However, the revTPSS presents only a slight improvement over PBEsol for the prediction of cohesive energies for solids, and some deterioration with respect to PBE. We also study the magnetic properties of Fe, for which both TPSS and revTPSS predict the right ground-state solid phase, the ferromagnetic body-centered-cubic (bcc) structure, with an accurate magnetic moment.