Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/w3tc-auto-pilot/trunk@1182682 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
Cybr authored and Cybr committed Jun 17, 2015
1 parent ff50723 commit 7fae04a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 3 additions & 4 deletions w3tc-auto-pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
}
}
}
Expand Down

0 comments on commit 7fae04a

Please sign in to comment.