data-bg is escaped with " for no reason
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘data-bg is escaped with " for no reason’ is closed to new replies.