I think to elaborate more, it does sort of have this function, acting like a pressure wave, but instead, the pressure wave is just mathematical probability, and in total contrast has really nothing to do with pressure, which requires "extra parameters"
So really, if you shoot a photon of light out in space, its not actually moving in the form of a wave, but the
mathematical probability that you could find it in a given location, is given by a wave-like distribution, where some regions have higher probabilities then others. This is
analogous to a region of high compression (ie, a region that has a higher probability of finding the particle in a certain location then another),
but is not a physical wave by any means.
Light also has additional wave like properties, where a photon is an oscillation between a magnetic field and a perpendicular electric field.
Now
I'm not well versed on the subject, but i believe that the reason its not a shear or pressure wave, is because the wave is self induced, there is no pervading medium required for the oscillation to occur, which means no magnetic field in space would effect the photon, and neither would an electric field.