PHP warning due to wp_calculate_image_srcset filter
-
Howdy!
I’m with the Jetpack team at Automattic and we’ve seen a number of reports of PHP Warnings while using Fluida:
Warning: Missing argument 2 for Jetpack_Photon::filter_srcset_array(), called in /home1/golfingl/public_html/wp-includes/class-wp-hook.php on line 298 and defined in /home1/golfingl/public_html/wp-content/plugins/jetpack/class.photon.php on line 629
These warnings are appearing because Fluida is applying the
wp_calculate_image_srcset
filter without passing all of the same args that core does at https://themes.trac.www.ads-software.com/browser/fluida/1.3.2/includes/loop.php#L246 , which is causing the warning in Jetpack from https://github.com/Automattic/jetpack/blob/223c2d906ac66722c5ede88019ba4faf5f0b25b1/class.photon.php#L629I’m proposing https://github.com/Automattic/jetpack/pull/7090 on our end to resolve it for Fluida and anyone else doing that same thing, but wanted to give you a FYI in case anyone reports it to you.
Cheers!
- The topic ‘PHP warning due to wp_calculate_image_srcset filter’ is closed to new replies.