No space between attributes.
-
This plugin generates non-valid html, as the data attributes are inserted without a leading whitespace.
A quick fix is to simply add one whitespace on line 88 column 16, so making this line not look like this:
$data .= " data-$key='$value'";
but like this:
$data .= " data-$key='$value'";
If you are pedantic, you could then remove one whitespace from the return statement on line 92, so instead:
return "<div class='fotorama--wp' $data>$gallery</div>";
do this:
return "<div class='fotorama--wp'$data>$gallery</div>";
I could not find a github repo for this plugin, so I will ask the author to change it, thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘No space between attributes.’ is closed to new replies.