data-bg is escaped with ” for no reason

[ad_1]

I found a bug in the plugin. But I think its the premium plugin. But dont know where to add this.

/wp-content/plugins/fifu-premium/includes/local.php
Line 163:

Originally:
$attr = ‘data-bg=’ . $mainDelimiter . $url . $mainDelimiter;
Fixed with:
$attr = ‘data-bg=’ . $mainDelimiter . html_entity_decode($url) . $mainDelimiter;

Seem’s that the “url” is somehow escaped. So in my code I’m using the picture directly:

background_image=”https://thepicture.jpg”

And the plugin converts it into:

data-bg="https://thepicture.jpg"

And of course… Thats not possible in an HTML element. So needs to be decoded first.

P. S. same in attachment.php line 437

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer