Version Description
Plugin Foundation updated to PPF03
Download this release
Release Info
Developer | petersplugins |
Plugin | 404page – your smart custom 404 error page |
Version | 11.1.3 |
Comparing to | |
See all releases |
Code changes from version 11.1.2 to 11.1.3
- 404page.php +1 -1
- inc/ppf/loader.php +2 -2
- inc/ppf/ppf-admin.php +12 -8
- inc/ppf/ppf-class.php +4 -4
- inc/ppf/ppf-plugin.php +4 -4
- inc/ppf/ppf-settings.php +4 -4
- inc/ppf/ppf-subclass.php +4 -4
- 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.1.
|
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.1.3
|
13 |
* Author: Peter Raschendorfer
|
14 |
* Author URI: https://petersplugins.com
|
15 |
* Text Domain: 404page
|
inc/ppf/loader.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
/**
|
4 |
* Plugin Foundation Loader
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
3 |
/**
|
4 |
* Plugin Foundation Loader
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
inc/ppf/ppf-admin.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
/**
|
4 |
* Admin Class
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
-
if ( !class_exists( '
|
14 |
|
15 |
|
16 |
-
abstract class
|
17 |
|
18 |
|
19 |
/**
|
@@ -71,7 +71,11 @@ if ( !class_exists( 'PPF02_Admin' ) ) {
|
|
71 |
}
|
72 |
|
73 |
// Register the options
|
74 |
-
|
|
|
|
|
|
|
|
|
75 |
|
76 |
|
77 |
}
|
@@ -392,10 +396,10 @@ if ( !class_exists( 'PPF02_Admin' ) ) {
|
|
392 |
echo '</div></form></div></div>';
|
393 |
echo '<script>var pp_admin_cookie_prefix="' . $this->core()->get_plugin_slug() . '";</script>';
|
394 |
|
395 |
-
wp_enqueue_style( $this->core()->get_plugin_slug() . '-
|
396 |
|
397 |
-
wp_enqueue_script( $this->core()->get_plugin_slug() . '-
|
398 |
-
wp_enqueue_script( $this->core()->get_plugin_slug() . '-
|
399 |
|
400 |
}
|
401 |
|
3 |
/**
|
4 |
* Admin Class
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
+
if ( !class_exists( 'PPF03_Admin' ) ) {
|
14 |
|
15 |
|
16 |
+
abstract class PPF03_Admin extends PPF03_SubClass {
|
17 |
|
18 |
|
19 |
/**
|
71 |
}
|
72 |
|
73 |
// Register the options
|
74 |
+
// since PPF03 only if there is a settings class
|
75 |
+
// so we can use the same function also if we don't need any settings
|
76 |
+
if ( false !== $this->settings() ) {
|
77 |
+
register_setting( $this->core()->get_plugin_slug(), $this->settings()->get_option_name(), array( 'sanitize_callback' => array( $this, 'sanitize_callback' ) ) );
|
78 |
+
}
|
79 |
|
80 |
|
81 |
}
|
396 |
echo '</div></form></div></div>';
|
397 |
echo '<script>var pp_admin_cookie_prefix="' . $this->core()->get_plugin_slug() . '";</script>';
|
398 |
|
399 |
+
wp_enqueue_style( $this->core()->get_plugin_slug() . '-ppf03', $this->get_foundation_asset_url( 'css', 'pp-admin-page.css' ) );
|
400 |
|
401 |
+
wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03-cookie', $this->get_foundation_asset_url( 'js', 'jquery.cookie.js' ), array( 'jquery' ), false, true );
|
402 |
+
wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03', $this->get_foundation_asset_url( 'js', 'pp-admin-page.js' ), array( 'jquery', $this->core()->get_plugin_slug() . '-ppf03-cookie' ), false, true );
|
403 |
|
404 |
}
|
405 |
|
inc/ppf/ppf-class.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
/**
|
4 |
* Base Class
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
@@ -19,10 +19,10 @@
|
|
19 |
}
|
20 |
|
21 |
|
22 |
-
if ( !class_exists( '
|
23 |
|
24 |
|
25 |
-
abstract class
|
26 |
|
27 |
|
28 |
/**
|
3 |
/**
|
4 |
* Base Class
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
19 |
}
|
20 |
|
21 |
|
22 |
+
if ( !class_exists( 'PPF03_Class' ) ) {
|
23 |
|
24 |
|
25 |
+
abstract class PPF03_Class {
|
26 |
|
27 |
|
28 |
/**
|
inc/ppf/ppf-plugin.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
/**
|
4 |
* Plugin Base Class
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
|
14 |
-
if ( !class_exists( '
|
15 |
|
16 |
-
abstract class
|
17 |
|
18 |
/**
|
19 |
* Instances
|
3 |
/**
|
4 |
* Plugin Base Class
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
|
14 |
+
if ( !class_exists( 'PPF03_Plugin' ) ) {
|
15 |
|
16 |
+
abstract class PPF03_Plugin extends PPF03_Class {
|
17 |
|
18 |
/**
|
19 |
* Instances
|
inc/ppf/ppf-settings.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
/**
|
4 |
* Settings Class
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
-
if ( !class_exists( '
|
14 |
|
15 |
|
16 |
-
abstract class
|
17 |
|
18 |
/**
|
19 |
* name of settings in databse (meta_key)
|
3 |
/**
|
4 |
* Settings Class
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
+
if ( !class_exists( 'PPF03_Settings' ) ) {
|
14 |
|
15 |
|
16 |
+
abstract class PPF03_Settings extends PPF03_SubClass {
|
17 |
|
18 |
/**
|
19 |
* name of settings in databse (meta_key)
|
inc/ppf/ppf-subclass.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
/**
|
4 |
* Plugin Base Sub-Class
|
5 |
*
|
6 |
-
* Peter's Plugins Foundation
|
7 |
*
|
8 |
-
* @package
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
-
if ( !class_exists( '
|
14 |
|
15 |
|
16 |
-
abstract class
|
17 |
|
18 |
/**
|
19 |
* reference to core class
|
3 |
/**
|
4 |
* Plugin Base Sub-Class
|
5 |
*
|
6 |
+
* Peter's Plugins Foundation 03
|
7 |
*
|
8 |
+
* @package PPF03
|
9 |
* @author Peter Raschendorfer
|
10 |
* @license GPL2+
|
11 |
*/
|
12 |
|
13 |
+
if ( !class_exists( 'PPF03_SubClass' ) ) {
|
14 |
|
15 |
|
16 |
+
abstract class PPF03_SubClass extends PPF03_Class {
|
17 |
|
18 |
/**
|
19 |
* reference to core class
|
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.1.
|
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.1.3'
|
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.1.
|
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.1.2 (2019-11-19) =
|
175 |
* exclude 404 page from XML sitemap generated by Jetpack
|
176 |
|
@@ -332,6 +335,9 @@ Please use the [Support Forum](https://wordpress.org/support/plugin/404page).
|
|
332 |
|
333 |
== Upgrade Notice ==
|
334 |
|
|
|
|
|
|
|
335 |
= 11.1.2 =
|
336 |
exclude 404 page from XML sitemap generated by Jetpack
|
337 |
|
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.1.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.1.3 (2019-12-29) =
|
175 |
+
* Plugin Foundation updated to PPF03, no functional changes
|
176 |
+
|
177 |
= 11.1.2 (2019-11-19) =
|
178 |
* exclude 404 page from XML sitemap generated by Jetpack
|
179 |
|
335 |
|
336 |
== Upgrade Notice ==
|
337 |
|
338 |
+
= 11.1.3 =
|
339 |
+
Plugin Foundation updated to PPF03
|
340 |
+
|
341 |
= 11.1.2 =
|
342 |
exclude 404 page from XML sitemap generated by Jetpack
|
343 |
|