Version Description
if W3 Total Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
Download this release
Release Info
Developer | petersplugins |
Plugin | 404page – your smart custom 404 error page |
Version | 11.2.1 |
Comparing to | |
See all releases |
Code changes from version 11.2.0 to 11.2.1
- 404page.php +1 -1
- inc/class-404page-admin.php +20 -1
- inc/class-404page.php +18 -1
- loader.php +1 -1
- readme.txt +7 -1
404page.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: 404page - your smart custom 404 error page
|
10 |
* Plugin URI: https://petersplugins.com/404page/
|
11 |
* Description: Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.
|
12 |
-
* Version: 11.2.
|
13 |
* Author: Peter Raschendorfer
|
14 |
* Author URI: https://petersplugins.com
|
15 |
* Text Domain: 404page
|
9 |
* Plugin Name: 404page - your smart custom 404 error page
|
10 |
* Plugin URI: https://petersplugins.com/404page/
|
11 |
* Description: Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.
|
12 |
+
* Version: 11.2.1
|
13 |
* Author: Peter Raschendorfer
|
14 |
* Author URI: https://petersplugins.com
|
15 |
* Text Domain: 404page
|
inc/class-404page-admin.php
CHANGED
@@ -221,7 +221,6 @@ if ( !class_exists( 'PP_404Page_Admin' ) ) {
|
|
221 |
|
222 |
// WP Super Cache
|
223 |
// since 11.2.0
|
224 |
-
// WP Super Cache
|
225 |
if ( defined('WPCACHEHOME') ) {
|
226 |
|
227 |
global $cache_enabled;
|
@@ -237,6 +236,26 @@ if ( !class_exists( 'PP_404Page_Admin' ) ) {
|
|
237 |
|
238 |
}
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
}
|
241 |
|
242 |
|
221 |
|
222 |
// WP Super Cache
|
223 |
// since 11.2.0
|
|
|
224 |
if ( defined('WPCACHEHOME') ) {
|
225 |
|
226 |
global $cache_enabled;
|
236 |
|
237 |
}
|
238 |
|
239 |
+
|
240 |
+
// W3 Total Cache
|
241 |
+
// since 11.2.1
|
242 |
+
if ( defined( 'W3TC' ) ) {
|
243 |
+
|
244 |
+
if ( class_exists( 'W3TC\Dispatcher' ) ) {
|
245 |
+
|
246 |
+
// is caching active?
|
247 |
+
if ( W3TC\Dispatcher::config()->get_boolean( 'pgcache.enabled' ) ) {
|
248 |
+
|
249 |
+
echo '<p class="pp-404page-info">';
|
250 |
+
echo esc_html__( 'W3 Total Cache detected. All 404 errors are automatically excluded from caching.', '404page' );
|
251 |
+
echo '</p><br />';
|
252 |
+
|
253 |
+
}
|
254 |
+
|
255 |
+
}
|
256 |
+
|
257 |
+
}
|
258 |
+
|
259 |
}
|
260 |
|
261 |
|
inc/class-404page.php
CHANGED
@@ -421,7 +421,7 @@ if ( !class_exists( 'PP_404Page' ) ) {
|
|
421 |
function disable_caching() {
|
422 |
|
423 |
// WP Super Cache
|
424 |
-
if ( defined('WPCACHEHOME') ) {
|
425 |
|
426 |
global $cache_enabled;
|
427 |
|
@@ -434,6 +434,23 @@ if ( !class_exists( 'PP_404Page' ) ) {
|
|
434 |
|
435 |
}
|
436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
}
|
438 |
|
439 |
|
421 |
function disable_caching() {
|
422 |
|
423 |
// WP Super Cache
|
424 |
+
if ( defined( 'WPCACHEHOME' ) ) {
|
425 |
|
426 |
global $cache_enabled;
|
427 |
|
434 |
|
435 |
}
|
436 |
|
437 |
+
|
438 |
+
// W3 Total Cache
|
439 |
+
if ( defined( 'W3TC' ) ) {
|
440 |
+
|
441 |
+
if ( class_exists( 'W3TC\Dispatcher' ) ) {
|
442 |
+
|
443 |
+
// is caching active?
|
444 |
+
if ( W3TC\Dispatcher::config()->get_boolean( 'pgcache.enabled' ) ) {
|
445 |
+
|
446 |
+
define( 'DONOTCACHEPAGE', true );
|
447 |
+
|
448 |
+
}
|
449 |
+
|
450 |
+
}
|
451 |
+
|
452 |
+
}
|
453 |
+
|
454 |
}
|
455 |
|
456 |
|
loader.php
CHANGED
@@ -42,7 +42,7 @@ function pp_404page() {
|
|
42 |
'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
|
43 |
'name' => '404page - your smart custom 404 error page',
|
44 |
'shortname' => '404page',
|
45 |
-
'version' => '11.2.
|
46 |
) );
|
47 |
|
48 |
}
|
42 |
'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
|
43 |
'name' => '404page - your smart custom 404 error page',
|
44 |
'shortname' => '404page',
|
45 |
+
'version' => '11.2.1'
|
46 |
) );
|
47 |
|
48 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: petersplugins
|
|
3 |
Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page, missing, broken link, template, 404 link, seo, custom 404, custom 404 page, custom 404 error, custom 404 error page, customize 404, customize 404 page, customize 404 error page, classicpress
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 11.2.
|
7 |
Requires PHP: 5.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -171,6 +171,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
|
|
171 |
|
172 |
== Changelog ==
|
173 |
|
|
|
|
|
|
|
174 |
= 11.2.0 (2020-01-01) =
|
175 |
* if WP Super Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
176 |
|
@@ -341,6 +344,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
|
|
341 |
|
342 |
== Upgrade Notice ==
|
343 |
|
|
|
|
|
|
|
344 |
= 11.2.0 =
|
345 |
if WP Super Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
346 |
|
3 |
Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page, missing, broken link, template, 404 link, seo, custom 404, custom 404 page, custom 404 error, custom 404 error page, customize 404, customize 404 page, customize 404 error page, classicpress
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 11.2.1
|
7 |
Requires PHP: 5.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= 11.2.1 (2020-01-04) =
|
175 |
+
* if W3 Total Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
176 |
+
|
177 |
= 11.2.0 (2020-01-01) =
|
178 |
* if WP Super Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
179 |
|
344 |
|
345 |
== Upgrade Notice ==
|
346 |
|
347 |
+
= 11.2.1 =
|
348 |
+
if W3 Total Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
349 |
+
|
350 |
= 11.2.0 =
|
351 |
if WP Super Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
|
352 |
|