Skip to content

Commit c508faa

Browse files
committed
v1.16.5 ⏺ fix theme update from network themes page by adding update-theme ajax action check
1 parent 8599264 commit c508faa

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

disciple-tools-multisite.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*Plugin Name: Disciple.Tools - Multisite
44
* Plugin URI: https://github.com/DiscipleTools/disciple-tools-multisite
55
* Description: An essential plugin for configuring and managing Disciple.Tools instances on a Multisite from the Network Admin.
6-
* Version: 1.16.4
6+
* Version: 1.16.5
77
* Author URI: https://github.com/DiscipleTools
88
* GitHub Plugin URI: https://github.com/DiscipleTools/disciple-tools-multisite
99
* Requires at least: 4.7.0
@@ -228,8 +228,9 @@ public function __call( $method = '', $args = array() ) {
228228
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
229229
add_action( 'plugins_loaded', function (){
230230
$is_updating_plugin = isset( $_POST['action'] ) && $_POST['action'] === 'update-plugin'; // phpcs:ignore WordPress.Security.NonceVerification.Missing
231+
$is_updating_theme = isset( $_POST['action'] ) && $_POST['action'] === 'update-theme'; // phpcs:ignore WordPress.Security.NonceVerification.Missing
231232
$disable = isset( $_POST['wppusher'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
232-
if ( !$disable && is_multisite() && ( is_network_admin() || wp_doing_cron() || $is_updating_plugin ) && is_main_site() ){
233+
if ( !$disable && is_multisite() && ( is_network_admin() || wp_doing_cron() || $is_updating_plugin || $is_updating_theme ) && is_main_site() ){
233234
// find the Disciple.Tools theme and load the plugin update checker.
234235
$current_theme = wp_get_theme();
235236
foreach ( wp_get_themes() as $theme ){

version-control.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Disciple.Tools - Multisite Configuration",
3-
"version": "1.16.4",
4-
"last_updated": "2025-11-17",
3+
"version": "1.16.5",
4+
"last_updated": "2026-03-31",
55
"author": "Disciple.Tools",
66
"author_homepage": "https://disciple.tools",
77
"git_owner": "DiscipleTools",

0 commit comments

Comments
 (0)