Plugin Directory

Changeset 3286964


Ignore:
Timestamp:
05/03/2025 07:28:24 PM (11 months ago)
Author:
sjcope
Message:

do not delete tables on delete

Location:
cwsi-invites
Files:
274 added
4 edited

Legend:

Unmodified
Added
Removed
  • cwsi-invites/trunk/README.txt

    r3276125 r3286964  
    22Contributors: charcope, sjcope
    33Tags: invitations, rsvps
    4 Stable tag: 1.4
     4Stable tag: 1.4.1
    55License: GPLv2
    66License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     52= 1.4.1 =
     53* Add back some premium functions
     54
    5255= 1.4 =
    5356* Tested with WordPress 6.8
     
    8184
    8285== Upgrade Notice ==
     86= 1.4.1 =
     87* Add back some premium functions. Update as soon as possible.
     88
    8389= 1.4 =
    8490* Tested with WordPress 6.8. Update when convenient.
  • cwsi-invites/trunk/admin/class-cwsi-invites-admin.php

    r3276125 r3286964  
    180180            array($this, 'cwsiinvitesviewresponses_page')
    181181        );
    182         // END PREMIUM ONLY
    183182    }
    184183
     
    368367                    );
    369368                }
    370                 // END PREMIUM ONLY
    371369                // Display form
    372370                cwslShowFilterEvents( $menu_slug, $results_events, $search_event_id );
     
    447445                    $results_events = cwsiGetEvents();
    448446                    $search_event_id = 1;
    449                     //default
     447                    // default
    450448                    if ( isset( $results_events['status'] ) && $results_events['status'] == 1 && isset( $results_events['data'] ) ) {
    451449                        $events = $results_events['data'];
     
    17281726// SETTINGS FUNCTIONS
    17291727//////////////////////////////////////////////////////////////////////////
    1730 // Check if settings table was updted in recent activation
     1728// Check if settings table was updated in recent activation
    17311729function cwsiIsSettingsTableUpdated() {
    17321730    global $wpdb;
     
    21362134    if ( !isset( $cwsevent_id ) || $cwsevent_id < 0 ) {
    21372135        return array(
    2138             'status' => 0,
    2139             'No event selected for deletion.',
     2136            'status'  => 0,
     2137            'message' => 'No event selected for deletion.',
    21402138        );
    21412139    }
  • cwsi-invites/trunk/cwsi-invites.php

    r3276125 r3286964  
    1818 * Requires at least: 6.3
    1919 * Requires PHP:      8.0
    20  * Version:           1.4
     20 * Version:           1.4.1
    2121 * Author:            Charlene's Web Services
    2222 * Author URI:        https://charlenesweb.ca
     
    6969     * First release 1.0.0 and then using SemVer - https://semver.org X.Y.Z (Major.Minor.Patch)
    7070     */
    71     define( 'CWSI_INVITES_VERSION', '1.4' );
     71    define( 'CWSI_INVITES_VERSION', '1.4.1' );
    7272    define( 'CWSI_INVITES_SRC_DIR', dirname( __FILE__ ) );
    7373    /**
     
    9292    // And here goes the uninstallation function:
    9393    function cwsi_invites_uninstall() {
    94         global $wpdb;
    95         global $wpdb;
    96         $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events" );
    97         // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    98         $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events_invitees" );
    99         // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    100         $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invites" );
    101         // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    102         $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invitesettings" );
    103         // phpcs:ignore WordPress.DB.DirectDatabaseQuery
     94        // do not delete the tables
    10495    }
    10596
  • cwsi-invites/trunk/includes/class-cwsi-invites.php

    r3276125 r3286964  
    7272            $this->version = CWSI_INVITES_VERSION;
    7373        } else {
    74             $this->version = '1.4';
     74            $this->version = '1.4.1';
    7575        }
    7676        $this->plugin_name = 'cwsi-invites';
Note: See TracChangeset for help on using the changeset viewer.