includes/class-freemius.php
private function unregister_uninstall_hook() {
            $uninstallable_plugins = (array) get_option( 'uninstall_plugins' );
            unset( $uninstallable_plugins[ $this->_free_plugin_basename ] );
            unset( $uninstallable_plugins[ $this->premium_plugin_basename() ] );

            update_option( 'uninstall_plugins', $uninstallable_plugins );
        }
private function unregister_uninstall_hook() {
            $uninstallable_plugins = (array) get_option( 'uninstall_plugins' );
            unset( $uninstallable_plugins[ $this->_free_plugin_basename ] );
            unset( $uninstallable_plugins[ $this->premium_plugin_basename() ] );

            update_option( 'uninstall_plugins', $uninstallable_plugins );
        }
private function unregister_uninstall_hook ( ) { $ uninstallable_plugins = ( array ) get_option ( 'uninstall_plugins' ) ; unset ( $ uninstallable_plugins [ $ this -> _free_plugin_basename ] ) ; unset ( $ uninstallable_plugins [ $ this -> premium_plugin_basename ( ) ] ) ; update_option ( 'uninstall_plugins' , $ uninstallable_plugins ) ; }
Keeping the uninstall hook registered for free or premium plugin version may result to a fatal error that
could happen when a user tries to uninstall either version while one of them is still active. Uninstalling a
plugin will trigger inclusion of the free or premium version and if one of them is active during the
uninstallation, a fatal error may occur in case the plugin's class or functions are already defined.

@author Leo Fajardo (@leorw)

@since  1.2.0
Keeping the uninstall hook registered for free or premium plugin version may result to a fatal error that could happen when a user tries to uninstall either version while one of them is still active . Uninstalling a plugin will trigger inclusion of the free or premium version and if one of them is active during the uninstallation a fatal error may occur in case the plugin s class or functions are already defined .