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

Version Description

fix for Polylang

Download this release

Release Info

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

Code changes from version 11.2.2 to 11.2.3

Files changed (4) hide show
  1. 404page.php +1 -1
  2. inc/class-404page.php +6 -2
  3. loader.php +1 -1
  4. readme.txt +8 -2
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.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.3
13
  * Author: Peter Raschendorfer
14
  * Author URI: https://petersplugins.com
15
  * Text Domain: 404page
inc/class-404page.php CHANGED
@@ -389,7 +389,9 @@ if ( !class_exists( 'PP_404Page' ) ) {
389
  $curpageid = apply_filters( 'wpml_object_id', $curpageid, 'page', $sitepress->get_default_language() );
390
  $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', $sitepress->get_default_language() );
391
 
392
- } elseif ( defined( 'POLYLANG_VERSION' ) ) {
 
 
393
 
394
  // Polylang is active - get the post ID of the default language
395
  $curpageid = pll_get_post( $curpageid, pll_default_language() );
@@ -941,7 +943,9 @@ if ( !class_exists( 'PP_404Page' ) ) {
941
  // WPML is active
942
  $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', true );
943
 
944
- } elseif ( defined( 'POLYLANG_VERSION' ) ) {
 
 
945
 
946
  // Polylang is active
947
  $translatedpageid = pll_get_post( $pageid );
389
  $curpageid = apply_filters( 'wpml_object_id', $curpageid, 'page', $sitepress->get_default_language() );
390
  $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', $sitepress->get_default_language() );
391
 
392
+ } elseif ( function_exists( 'pll_get_post' ) ) {
393
+
394
+ // was defined( 'POLYLANG_VERSION' ) before version 11.2.3
395
 
396
  // Polylang is active - get the post ID of the default language
397
  $curpageid = pll_get_post( $curpageid, pll_default_language() );
943
  // WPML is active
944
  $pageid = apply_filters( 'wpml_object_id', $pageid, 'page', true );
945
 
946
+ } elseif ( function_exists( 'pll_get_post' ) ) {
947
+
948
+ // was defined( 'POLYLANG_VERSION' ) before version 11.2.3
949
 
950
  // Polylang is active
951
  $translatedpageid = pll_get_post( $pageid );
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.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.3'
46
  ) );
47
 
48
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
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: 5.4
6
- Stable tag: 11.2.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.2 (2020-03-28) =
175
  * changes to the notification for hopefully better compatibility
176
  * Plugin Foundation swtiched to PPF04
@@ -348,6 +351,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
348
 
349
  == Upgrade Notice ==
350
 
 
 
 
351
  = 11.2.2 =
352
  notification compatibility
353
 
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: 5.5
6
+ Stable tag: 11.2.3
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.3 (2020-07-05) =
175
+ * fix for Polylang ([see topic](https://wordpress.org/support/topic/undefined-function-pll_get_post/))
176
+
177
  = 11.2.2 (2020-03-28) =
178
  * changes to the notification for hopefully better compatibility
179
  * Plugin Foundation swtiched to PPF04
351
 
352
  == Upgrade Notice ==
353
 
354
+ = 11.2.3 =
355
+ fix for Polylang
356
+
357
  = 11.2.2 =
358
  notification compatibility
359