Support » Plugin: Plugin Name: Device Theme Switcher » Small bug in 2.8

  • Resolved qstudio

    (@qlstudio)


    Hi James,

    inc/class.update.php:57

    //return the currently installed plugin version
    return intval($current_version) ;

    should be

    //return the currently installed plugin version
    return floatval($current_version) ;

    intval kills the decimal place – so 2.8 becomes 2 and so the update script runs on each page load – clearing some saved preferences in the DB

    Q

    https://wordpress.org/plugins/device-theme-switcher/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author James Mehorter

    (@jamesmehorter)

    Thank you very much for reporting this!

    We’ve corrected this (with a big revision to the updating routine) in develop branch at Github and have slated it for release in the next version. Thanks again for the find!

    Plugin Author James Mehorter

    (@jamesmehorter)

    This issue has been corrected in version 2.9.0 released 12/18/2014

    Thanks for following this up.

    Q

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Small bug in 2.8’ is closed to new replies.