Version Description
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- CPTP/Module/Option.php +13 -1
- custom-post-type-permalinks.php +2 -2
- readme.txt +1 -1
CPTP/Module/Option.php
CHANGED
@@ -22,7 +22,19 @@ class CPTP_Module_Option extends CPTP_Module {
|
|
22 |
return false;
|
23 |
}
|
24 |
|
25 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
return false;
|
27 |
}
|
28 |
|
22 |
return false;
|
23 |
}
|
24 |
|
25 |
+
if ( empty( $_POST['_wpnonce'] ) ) {
|
26 |
+
return false;
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( ! wp_verify_nonce( $_POST['_wpnonce'], 'update-permalink' ) ) {
|
30 |
+
return false;
|
31 |
+
}
|
32 |
+
|
33 |
+
if ( empty( $_POST['_wp_http_referer'] ) ) {
|
34 |
+
return false;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( false === strpos( $_POST['_wp_http_referer'], 'options-permalink.php' ) ) {
|
38 |
return false;
|
39 |
}
|
40 |
|
custom-post-type-permalinks.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/torounit/custom-post-type-permalinks
|
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: https://torounit.com/
|
8 |
-
Version: 2.0.
|
9 |
Text Domain: custom-post-type-permalinks
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
@@ -17,7 +17,7 @@ Domain Path: /language/
|
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
-
* @version 2.0.
|
21 |
*/
|
22 |
|
23 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: https://torounit.com/
|
8 |
+
Version: 2.0.1
|
9 |
Text Domain: custom-post-type-permalinks
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
+
* @version 2.0.1
|
21 |
*/
|
22 |
|
23 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 2.0.1
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|