Created
February 4, 2015 15:44
-
-
Save icambridge/944f3f3ce5a65653bec5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WPSQT_VERSION', '1.2.1'); | |
$oldVersion = get_option('wpsqt_version'); | |
update_option('wpsqt_version',WPSQT_VERSION); | |
// Simple way of checking if an it's an update or not. | |
if ( !empty($oldVersion) && (version_compare($oldVersion, WPSQT_VERSION) < 0) ){ | |
// Do upgrade stuff. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment