Bug in TD Composer

Posted in: Newspaper
Post count: 187

Hello,

I hired a dev to help me upgrade the performances of my website and he found a bug in TD Composer.
The file td_util.php located /wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php miss a line that create a bug : webp is only displayed if you are logged in, not for guests or google


static function browser_supports_webp() {
return true; // <==== THIS LINE IS MISSING
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'image/webp') !== false) {
return true;
}
return false;
}

My site is https://byothe.fr

  • This topic was modified 1 year by byothe.
  • This topic was modified 1 year by byothe.
  • This topic was modified 1 year by byothe.
Post count: 27744

Hello,

I added this to our list. Thank you for sharing it with us.

Have a great day!

Post count: 187

Hello Anamaria

Is it corrected in version 12.7 ?

Is it this problem :
fix: WebP support in Loop shortcodes;

  • This reply was modified 1 year by byothe.
Post count: 27744

Hello,

It is fixed.

Have a great day!

Post count: 187

Good news !
Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.