Make so zip of repository is a valid plugin

This commit is contained in:
2026-05-08 12:48:14 +02:00
parent 8031e2ffc4
commit 04d625110d
4 changed files with 21 additions and 11 deletions

View File

@@ -1,10 +1,4 @@
<?php
/**
* Plugin Name: Go Form Plugin
* Description: Form plugin for Go players
* Version: 0.03
* Author: Nikola Petrov
*/
if (!defined('ABSPATH'))
exit;
@@ -42,7 +36,6 @@ function go_form_activate()
FOREIGN KEY (form_id) REFERENCES $forms(id) ON DELETE CASCADE
) $charset;");
}
register_activation_hook(__FILE__, 'go_form_activate');
function go_form_uninstall()
{
@@ -50,8 +43,6 @@ function go_form_uninstall()
$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}go_form_entries");
$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}go_form_forms");
}
register_uninstall_hook(__FILE__, 'go_form_uninstall');
//register_deactivation_hook(__FILE__, 'go_form_uninstall');
// ========== Helpers ==========
$ranks = [
0 => '30k', 1 => '29k', 2 => '28k', 3 => '27k', 4 => '26k',