Support » Plugin: Slideshow Gallery » Fixed JS syntax error on thumbnail spacing

  • A bug exists where if the user sets thumbnail spacing to “0” pixels, the zero is passed as null and renders in client-side as “slideshow.spacing = ;” causing the entire slideshow to not display.

    I fixed this in /views/default/gallery.php on line 270 by changing:

    slideshow.spacing = <?php echo $options['thumbsspacing']; ?>;

    to:

    slideshow.spacing = <?php echo $options['thumbsspacing'] ? $options['thumbsspacing'] : '0'; ?>;

    http://wordpress.org/extend/plugins/slideshow-gallery/

  • The topic ‘Fixed JS syntax error on thumbnail spacing’ is closed to new replies.