wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Function Call Needs Updated to Pass 2 Arguments Instead of Just 1 #612

Closed joejoe04 closed 2 years ago

joejoe04 commented 2 years ago

Describe the bug Function call only passes 1 argument but 2 are required since WordPress 5.1:

https://github.com/wp-media/imagify-plugin/blob/8d9ed54c7869b0829bf351c76b3f93bc4d3ed4de/inc/classes/class-imagify.php#L507

In this ticket, it's causing an error with the Flatsome theme because it also uses the same filter while passing 2 arguments. The specific error this is causing is available within the ticket.

Expected behavior We should update the code to add the additional parameter, which could be an empty value or the homepage URL

https://wp-media.slack.com/archives/C5S1X8WBY/p1628266264020800

Backlog Grooming (for WP Media dev team use only)