• Resolved kirstie99

    (@kirstie99)


    Hi Nick,

    Thanks for an excellent plugin.

    I’ve spotted a glitch, but also have the solution for you ??

    In its current form, the output of the plugin fails W3 validation (W3 validator) due to the fact that “<” signs are inserted for some of the social networks like Facebook & Twitter.

    Code example from quickshare.php at approx line 622:
    <a href="https://facebook.com/sharer.php?u=<?php echo $url; ?>&t=<?php echo $title.'+<+'.$source; ?>"

    The offending part is the: ‘+<+’ bit.

    If you change the “<” between the two plusses to the html equivalent, it validates perfectly.

    In this example, I’ve substituted the html code for a dash (–) instead of the “<“:
    <a href="https://facebook.com/sharer.php?u=<?php echo $url; ?>&t=<?php echo $title.'+–+'.$source; ?>"

    Hope that makes sense and helps you!

    https://www.ads-software.com/plugins/quickshare/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Still fails W3 validation,

    I like much this plugin, but this is annoying…

    Author’s plugin has contemplated to solve this?

    O any automated solution?

    Thanks

    Plugin Author Nick Halsey

    (@celloexpressions)

    Sorry about the delay; this is now fixed in the development version of the plugin. It’ll come with the next plugin update, although I’m guessing that won’t come out for a while (will wait for other fixes that might be needed).

    In the meantime, you can manually update it by downloading the development version from here and replacing the files via FTP. But these types of validations don’t create any functional issues, so the update is not critical.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Fix Included] Plugin Output Fails W3 Validation’ is closed to new replies.