/** * Do activation procedure on plugin upgrade */ function file_gallery_upgrade() { $options = get_option('file_gallery'); if (isset($options['version']) && version_compare($options['version'], FILE_GALLERY_VERSION, '<')) { $networkwide = is_plugin_active_for_network(basename(dirname(__FILE__)) . '/' . basename(__FILE__)); file_gallery_activate($networkwide); } }
/** * Do activation procedure on plugin upgrade */ function file_gallery_upgrade() { $options = get_option('file_gallery'); if ($options && version_compare($options['version'], FILE_GALLERY_VERSION, '<')) { file_gallery_activate(); } }