all repos — wp-ffpc @ 8ec2ebf5692df2e7d5fb5987c2d2a7947b077eb4

common -> wp-common
Peter Molnar hello@petermolnar.eu
Thu, 30 May 2013 16:35:11 +0100
commit

8ec2ebf5692df2e7d5fb5987c2d2a7947b077eb4

parent

56b7fe8414589df2cdf2b4ec9b1856a8b10347dd

2 files changed, 1 insertions(+), 5 deletions(-)

jump to
M .gitmodules.gitmodules

@@ -1,6 +1,3 @@

-[submodule "common"] - path = common - url = https://github.com/petermolnar/wp-common.git [submodule "wp-common"] path = wp-common url = git@github.com:petermolnar/wp-common.git
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -675,8 +675,7 @@ */

public function plugin_hook_options_migrate( &$options ) { $migrated = false; - if ( $options['version'] != $this->plugin_version || !isset ( $options['version'] ) ) { - + if ( version_compare ( $options['version'] , $this->plugin_version , '<' ) ) { /* cleanup possible leftover files from previous versions */ $check = array ( 'advanced-cache.php', 'nginx-sample.conf', 'wp-ffpc.admin.css', 'wp-ffpc-common.php' ); foreach ( $check as $fname ) {