Plugin Directory

Changeset 3390889


Ignore:
Timestamp:
11/06/2025 08:00:19 AM (5 months ago)
Author:
leopardhost
Message:

v2.0.2: Fix Settings (save)

Location:
tnc-toolbox
Files:
17 added
4 edited

Legend:

Unmodified
Added
Removed
  • tnc-toolbox/trunk/core/core.php

    r3390875 r3390889  
    192192     * Set notice helper for admin notices
    193193     */
    194     private function set_notice($message, $type = 'error') {
     194    public static function set_notice($message, $type = 'error') {
    195195        $transient_key = $type === 'error' ?
    196196            'tnctoolbox_uapi_action_error' :
  • tnc-toolbox/trunk/core/settings.php

    r3390845 r3390889  
    135135            try {
    136136                $test_result = TNC_cPanel_UAPI::test_connection();
    137                 TNC_cPanel_UAPI::set_notice(
     137                TNC_Core::set_notice(
    138138                    $test_result['message'],
    139139                    $test_result['success'] ? 'success' : 'error'
    140140                );
    141141            } catch (Exception $e) {
    142                 TNC_cPanel_UAPI::set_notice(
     142                TNC_Core::set_notice(
    143143                    'Connection test failed: ' . $e->getMessage(),
    144144                    'error'
     
    146146            }
    147147        } else {
    148             TNC_cPanel_UAPI::set_notice(
     148            TNC_Core::set_notice(
    149149                'Please fill in all fields to test the connection.',
    150150                'error'
  • tnc-toolbox/trunk/readme.txt

    r3390875 r3390889  
    88Tested up to: 6.8
    99Requires PHP: 8.0
    10 Stable tag: 2.0.1
     10Stable tag: 2.0.2
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9595== Changelog ==
    9696
     97= 2.0.2: Nov 6, 2025 =
     98* Fix: Settings save no longer errors (relocated func.) (#32)
     99
    97100= 2.0.1: Nov 6, 2025 =
    98101* Fix: Auto-purge now calls directly (re: nonce failure) (#31)
  • tnc-toolbox/trunk/tnc-toolbox.php

    r3390875 r3390889  
    66 * @author            The Network Crew Pty Ltd (TNC & Co.)
    77 * @license           gplv3
    8  * @version           2.0.1
     8 * @version           2.0.2
    99 *
    1010 * @wordpress-plugin
     
    1212 * Plugin URI:        https://merlot.digital
    1313 * Description:       Adds functionality to WP - designed for NGINX-powered Servers on cPanel+WHM. Made to help you fly online!
    14  * Version:           2.0.1
     14 * Version:           2.0.2
    1515 * Requires at least: 6.0
    1616 * Requires PHP:      8.0
     
    3232
    3333// Plugin version
    34 define('TNCTOOLBOX_VERSION', '2.0.1');
     34define('TNCTOOLBOX_VERSION', '2.0.2');
    3535
    3636// Plugin Root File
Note: See TracChangeset for help on using the changeset viewer.