404page – your smart custom 404 error page - Version 11.4.2

Version Description

also add class error404 to body tag if page is called directly

Download this release

Release Info

Developer petersplugins
Plugin Icon 128x128 404page – your smart custom 404 error page
Version 11.4.2
Comparing to
See all releases

Code changes from version 11.4.1 to 11.4.2

Files changed (4) hide show
  1. 404page.php +2 -2
  2. inc/class-404page.php +2 -0
  3. loader.php +2 -2
  4. readme.txt +10 -3
404page.php CHANGED
@@ -6,10 +6,10 @@
6
  * 404page allows creation of 404 error pages in WordPress admin
7
  *
8
  * @wordpress-plugin
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.4.1
13
  * Author: Peter Raschendorfer
14
  * Author URI: https://petersplugins.com
15
  * Text Domain: 404page
6
  * 404page allows creation of 404 error pages in WordPress admin
7
  *
8
  * @wordpress-plugin
9
+ * Plugin Name: Smart Custom 404 error page [404page]
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.4.2
13
  * Author: Peter Raschendorfer
14
  * Author URI: https://petersplugins.com
15
  * Text Domain: 404page
inc/class-404page.php CHANGED
@@ -518,6 +518,8 @@ if ( !class_exists( 'PP_404Page' ) ) {
518
  status_header( 404 );
519
  nocache_headers();
520
  $this->maybe_force_404();
 
 
521
  $this->do_404page_action();
522
  }
523
  }
518
  status_header( 404 );
519
  nocache_headers();
520
  $this->maybe_force_404();
521
+ // Add 404 body class - since 11.4.2
522
+ add_filter( 'body_class', array( $this, 'add_404_body_class' ) );
523
  $this->do_404page_action();
524
  }
525
  }
loader.php CHANGED
@@ -54,9 +54,9 @@ function pp_404page() {
54
  return PP_404Page::getInstance( array(
55
  'file' => dirname( __FILE__ ) . '/404page.php',
56
  'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
57
- 'name' => '404page - your smart custom 404 error page',
58
  'shortname' => '404page',
59
- 'version' => '11.4.1'
60
  ) );
61
 
62
  }
54
  return PP_404Page::getInstance( array(
55
  'file' => dirname( __FILE__ ) . '/404page.php',
56
  'slug' => pathinfo( dirname( __FILE__ ) . '/404page.php', PATHINFO_FILENAME ),
57
+ 'name' => 'Smart Custom 404 error page [404page]',
58
  'shortname' => '404page',
59
+ 'version' => '11.4.2'
60
  ) );
61
 
62
  }
readme.txt CHANGED
@@ -1,9 +1,9 @@
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, classicpress
4
  Requires at least: 4.0
5
  Tested up to: 6.1
6
- Stable tag: 11.4.1
7
  Requires PHP: 5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -169,7 +169,7 @@ If you are a theme developer you can add native support for the 404page plugin t
169
 
170
  == Screenshots ==
171
 
172
- 1. The default 404 error page of the Twenty Twenty theme
173
  2. Creating a custom 404 error page
174
  3. Select the created page as 404 error page
175
  4. The custom 404 error page in action
@@ -196,6 +196,10 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
196
 
197
  == Changelog ==
198
 
 
 
 
 
199
  = 11.4.1 (2022-10-16) =
200
  * bugfix: load Javascript for Block only when needed
201
 
@@ -401,6 +405,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
401
 
402
  == Upgrade Notice ==
403
 
 
 
 
404
  = 11.4.1 =
405
  bugfix: load Javascript for Block only when needed
406
 
1
+ === Smart Custom 404 error page [404page] ===
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, classicpress
4
  Requires at least: 4.0
5
  Tested up to: 6.1
6
+ Stable tag: 11.4.2
7
  Requires PHP: 5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
169
 
170
  == Screenshots ==
171
 
172
+ 1. The themes default 404 error page
173
  2. Creating a custom 404 error page
174
  3. Select the created page as 404 error page
175
  4. The custom 404 error page in action
196
 
197
  == Changelog ==
198
 
199
+ = 11.4.2 (2022-11-01) =
200
+ * also add class error404 to body tag if page is called directly
201
+ * plugin renamed
202
+
203
  = 11.4.1 (2022-10-16) =
204
  * bugfix: load Javascript for Block only when needed
205
 
405
 
406
  == Upgrade Notice ==
407
 
408
+ = 11.4.2 =
409
+ also add class error404 to body tag if page is called directly
410
+
411
  = 11.4.1 =
412
  bugfix: load Javascript for Block only when needed
413