From 7fae04af2835f03b54add9b724f3167e513af254 Mon Sep 17 00:00:00 2001 From: Cybr Date: Wed, 17 Jun 2015 16:41:25 +0000 Subject: [PATCH] 1.0.6 git-svn-id: https://plugins.svn.wordpress.org/w3tc-auto-pilot/trunk@1182682 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- readme.txt | 3 +++ w3tc-auto-pilot.php | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index b727847..cf1b103 100644 --- a/readme.txt +++ b/readme.txt @@ -51,6 +51,9 @@ It's absolutely great on MultiSite installations, especially when you allow untr == Changelog == += 1.0.6 = +* Fixed a bug with Domain Mapping. Make sure Administrative Mapping is set to "Either" or "Mapped Domain". + = 1.0.5 = * Made sure the admin bar was removed. It's only removed if you're not admin (single) or super-admin (multisite) diff --git a/w3tc-auto-pilot.php b/w3tc-auto-pilot.php index 2d49461..f093206 100644 --- a/w3tc-auto-pilot.php +++ b/w3tc-auto-pilot.php @@ -3,7 +3,7 @@ * Plugin Name: W3TC Auto Pilot * Plugin URI: https://wordpress.org/plugins/w3tc-auto-pilot/ * Description: Put W3 Total Cache on auto pilot. This plugin allows you to control W3 Total Cache in such a manner that no one knows you're using it, not even your admins. Either network activate it or activate it per site. - * Version: 1.0.5 + * Version: 1.0.6 * Author: Sybre Waaijer * Author URI: https://cyberwire.nl/ * License: GPLv2 or later @@ -55,7 +55,7 @@ function wap_w3tc_init() { add_action( 'admin_init', 'wap_w3tc_remove_notices', 20); //* Added functionality to prevent cache bugs with Domain Mapping (by WPMUdev) - add_action( 'admin_init', 'wap_mapped_clear', 20); + add_action( 'after_setup_theme', 'wap_mapped_clear', 20); } add_action( 'after_setup_theme', 'wap_w3tc_init' ); // Call very early, before init and admin_init @@ -72,8 +72,7 @@ function wap_mapped_clear() { //* string $ismapped, if mapped != '' if ( !empty($ismapped) ) { -// add_action( 'save_post', 'wap_w3tc_flush_single_post' ); // Doesn't work unfortunately with Domain Mapping... somehow 2 ID's are being created? - add_action( 'save_post', 'wap_w3tc_flush_page' ); // So we just flush it entirely. But only if the domain is mapped! :D + add_action( 'wp_insert_post', 'wap_w3tc_flush_page' ); // So we just flush it entirely. But only if the domain is mapped! :D } } }