You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm receiving a lot of undefined variables notices when using WP 5.3.2 with Tachyon, it caused by the compact( ... 'size' ) variable in the tachyon_post_image_args hook.
It looks like the cause here is $size remains undefined for full size images. This is the case for both images scaled and unscaled images in WordPress 5.3.
This was tested using the highly technical process of adding var_dump( $attachment_id, isset( $size ) ? $size : '! isset' ); above the tachyon_post_image_args hook.
I'll chuck a PR up in the next couple of weeks, if you set up a travis ci config (I didn't think to give myself write access to this repo) I'll throw in some unit tests.
I think we need to handle full size more better in general, just hit another snag with gaussholder compat for full size images. Will do a PR to address these problems.
Thanks Rob, sorry for the lack of promised PR. I figured out my night brain was almost correct in the message above but didn't provide complete information.
I'm receiving a lot of undefined variables notices when using WP 5.3.2 with Tachyon, it caused by the
compact( ... 'size' )
variable in thetachyon_post_image_args
hook.The site in question is using smart media from Altis/media 2.x if that is likely to be having an effect.
The text was updated successfully, but these errors were encountered: