Version Description
preventive fix
Download this release
Release Info
Developer | petersplugins |
Plugin | 404page – your smart custom 404 error page |
Version | 10.2 |
Comparing to | |
See all releases |
Code changes from version 10.1 to 10.2
- 404page.php +1 -1
- inc/class-404page.php +1 -1
- loader.php +1 -1
- readme.txt +7 -2
404page.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: 404page - your smart custom 404 error page
|
10 |
* Plugin URI: https://petersplugins.com/free-wordpress-plugins/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: 10.
|
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/free-wordpress-plugins/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: 10.2
|
13 |
* Author: Peter Raschendorfer
|
14 |
* Author URI: https://petersplugins.com
|
15 |
* Text Domain: 404page
|
inc/class-404page.php
CHANGED
@@ -443,7 +443,7 @@ if ( !class_exists( 'PP_404Page' ) ) {
|
|
443 |
// this is necessary to bypass a WordPress bug
|
444 |
// if permalink setting is something like e.g. /blog/%postname%/ the $posts is not empty
|
445 |
// bug reported https://core.trac.wordpress.org/ticket/46000
|
446 |
-
if ( (
|
447 |
|
448 |
// as of v2.1 we do not alter the posts argument here because this does not work with SiteOrigin's Page Builder Plugin, template_include filter introduced
|
449 |
$this->postid = $pageid;
|
443 |
// this is necessary to bypass a WordPress bug
|
444 |
// if permalink setting is something like e.g. /blog/%postname%/ the $posts is not empty
|
445 |
// bug reported https://core.trac.wordpress.org/ticket/46000
|
446 |
+
if ( ( empty( $posts ) || ( isset( $wp_query->query['error'] ) && $wp_query->query['error'] == 404 ) ) && is_main_query() && !is_robots() && !is_home() && !is_feed() && !is_search() && !is_archive() && ( !defined('DOING_AJAX') || !DOING_AJAX ) ) {
|
447 |
|
448 |
// as of v2.1 we do not alter the posts argument here because this does not work with SiteOrigin's Page Builder Plugin, template_include filter introduced
|
449 |
$this->postid = $pageid;
|
loader.php
CHANGED
@@ -40,7 +40,7 @@ function pp_404page() {
|
|
40 |
'file' => dirname( __FILE__ ) . '/404page.php',
|
41 |
'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
|
42 |
'name' => '404page - your smart custom 404 error page',
|
43 |
-
'version' => '10.
|
44 |
) );
|
45 |
|
46 |
}
|
40 |
'file' => dirname( __FILE__ ) . '/404page.php',
|
41 |
'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
|
42 |
'name' => '404page - your smart custom 404 error page',
|
43 |
+
'version' => '10.2'
|
44 |
) );
|
45 |
|
46 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
=== 404page - your smart custom 404 error page ===
|
2 |
Contributors: petersplugins
|
3 |
-
Donate link: https://petersplugins.com/make-a-donation/
|
4 |
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
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 10.
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -153,6 +152,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
156 |
= 10.1 (2019-02-14) =
|
157 |
* error fixed ([ticket](https://wordpress.org/support/topic/version-10-crashes-system/))
|
158 |
|
@@ -273,6 +275,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
|
|
273 |
|
274 |
== Upgrade Notice ==
|
275 |
|
|
|
|
|
|
|
276 |
= 10.1 =
|
277 |
error fix
|
278 |
|
1 |
=== 404page - your smart custom 404 error page ===
|
2 |
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
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 10.2
|
7 |
Requires PHP: 5.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 10.2 (2019-02-19) =
|
156 |
+
* just another small change to prevent from potential problems with version 10
|
157 |
+
|
158 |
= 10.1 (2019-02-14) =
|
159 |
* error fixed ([ticket](https://wordpress.org/support/topic/version-10-crashes-system/))
|
160 |
|
275 |
|
276 |
== Upgrade Notice ==
|
277 |
|
278 |
+
= 10.2 =
|
279 |
+
preventive fix
|
280 |
+
|
281 |
= 10.1 =
|
282 |
error fix
|
283 |
|