Plugin Directory

Changeset 3468221


Ignore:
Timestamp:
02/24/2026 04:40:16 AM (2 weeks ago)
Author:
awcode
Message:

fix active plugin

Location:
awcode-toolkit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • awcode-toolkit/trunk/aw-toolkit.php

    r3468178 r3468221  
    22/*
    33 * Plugin Name: AWcode Toolkit
    4  * Version: 1.0.22
     4 * Version: 1.0.23
    55 * Description: A collection of useful tools and functions for Wordpress site owners
    66 * Author: AWcode
  • awcode-toolkit/trunk/includes/class.awtoolkit-remote.php

    r3468178 r3468221  
    254254        }
    255255
     256        if (!function_exists('is_plugin_active')) {
     257            require_once ABSPATH . 'wp-admin/includes/plugin.php';
     258        }
     259
     260        $was_active = is_plugin_active($plugin);
     261
    256262        $this->configure_filesystem($request);
    257263
     
    270276        }
    271277
     278        if ($was_active) {
     279            activate_plugin($plugin, '', false, true);
     280        }
     281
    272282        return rest_ensure_response(array('success' => true, 'plugin' => $plugin));
    273283    }
  • awcode-toolkit/trunk/readme.txt

    r3468178 r3468221  
    55Requires at least: 5.0
    66Tested up to: 6.9
    7 Stable tag: 1.0.22
     7Stable tag: 1.0.23
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.