| @@ -504,8 +504,16 @@ | ||
| 504 | 504 | OR `option_name` REGEXP '^" . WPF()->base_prefix . "'" |
| 505 | 505 | ); |
| 506 | 506 | WPF()->db->query( "DELETE FROM `" . WPF()->db->usermeta . "` WHERE `meta_key` REGEXP '^" . WPF()->base_prefix . "'" ); |
| 507 | 507 | foreach( WPF()->_base_tables as $table ) WPF()->db->query( "DROP TABLE IF EXISTS `" . wpforo_fix_table_name( $table ) . "`" ); |
| 508 | + | |
| 509 | + // gVectors News module cleanup — shared gvectors_* data is removed only when | |
| 510 | + // no other gVectors plugin (wpDiscuz, ...) carrying the module remains installed | |
| 511 | + if( class_exists( \gVectors\News\NewsModule::class ) ) { | |
| 512 | + $gv_news_config = \gVectors\News\NewsModule::get( WPFORO_BASEFOLDER, 'config' ); | |
| 513 | + if( $gv_news_config ) \gVectors\News\NewsModule::uninstall( $gv_news_config ); | |
| 514 | + } | |
| 515 | + | |
| 508 | 516 | deactivate_plugins( WPFORO_BASENAME ); |
| 509 | 517 | } |
| 510 | 518 | |
| 511 | 519 | function wpforo_profile_notice() { |