Version Description
- Add disable option for date / author and post type archive.
- Bug fix for
parse_request
.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- CPTP/Util.php +2 -2
- custom-post-type-permalinks.php +2 -2
- readme.md +4 -0
- readme.txt +3 -3
CPTP/Util.php
CHANGED
@@ -180,12 +180,12 @@ class CPTP_Util {
|
|
180 |
$post_type = get_post_type_object( $post_type );
|
181 |
}
|
182 |
|
183 |
-
if ( ! empty( $post_type->cptp ) && ! empty( $post_type->cptp
|
184 |
$structure = $post_type->cptp->permalink_structure;
|
185 |
} else if ( ! empty( $post_type->cptp_permalink_structure ) ) {
|
186 |
$structure = $post_type->cptp_permalink_structure;
|
187 |
} else {
|
188 |
-
$structure = get_option( $post_type->name . '_structure' );
|
189 |
}
|
190 |
$structure = '/' . ltrim( $structure, '/' );
|
191 |
|
180 |
$post_type = get_post_type_object( $post_type );
|
181 |
}
|
182 |
|
183 |
+
if ( ! empty( $post_type->cptp ) && ! empty( $post_type->cptp['permalink_structure'] ) ) {
|
184 |
$structure = $post_type->cptp->permalink_structure;
|
185 |
} else if ( ! empty( $post_type->cptp_permalink_structure ) ) {
|
186 |
$structure = $post_type->cptp_permalink_structure;
|
187 |
} else {
|
188 |
+
$structure = get_option( $post_type->name . '_structure', '%postname%' );
|
189 |
}
|
190 |
$structure = '/' . ltrim( $structure, '/' );
|
191 |
|
custom-post-type-permalinks.php
CHANGED
@@ -5,13 +5,13 @@
|
|
5 |
* Description: Add post archives of custom post type and customizable permalinks.
|
6 |
* Author: Toro_Unit
|
7 |
* Author URI: https://torounit.com/
|
8 |
-
* Version: 3.3.
|
9 |
* Text Domain: custom-post-type-permalinks
|
10 |
* License: GPL2 or later
|
11 |
* Domain Path: /language/
|
12 |
*
|
13 |
* @package Custom_Post_Type_Permalinks
|
14 |
-
* @version 3.3.
|
15 |
*/
|
16 |
|
17 |
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: 3.3.1
|
9 |
* Text Domain: custom-post-type-permalinks
|
10 |
* License: GPL2 or later
|
11 |
* Domain Path: /language/
|
12 |
*
|
13 |
* @package Custom_Post_Type_Permalinks
|
14 |
+
* @version 3.3.1
|
15 |
*/
|
16 |
|
17 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
readme.md
CHANGED
@@ -72,6 +72,10 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
72 |
|
73 |
## Changelog
|
74 |
|
|
|
|
|
|
|
|
|
75 |
### 3.2.2
|
76 |
* Fix readme.txt
|
77 |
|
72 |
|
73 |
## Changelog
|
74 |
|
75 |
+
### 3.3.1
|
76 |
+
* Add disable option for date / author and post type archive.
|
77 |
+
* Bug fix for `parse_request`.
|
78 |
+
|
79 |
### 3.2.2
|
80 |
* Fix readme.txt
|
81 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or Later
|
10 |
|
11 |
Edit the permalink of custom post type.
|
@@ -20,7 +20,7 @@ And support `wp_get_archives( 'post_type=foo' )`.
|
|
20 |
|
21 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
22 |
|
23 |
-
Donation: Please send [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV) or [Paypal]
|
24 |
|
25 |
|
26 |
= Translators =
|
@@ -68,7 +68,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
-
= 3.3.
|
72 |
* Add disable option for date / author and post type archive.
|
73 |
* Bug fix for `parse_request`.
|
74 |
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 3.3.1
|
9 |
License: GPLv2 or Later
|
10 |
|
11 |
Edit the permalink of custom post type.
|
20 |
|
21 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
22 |
|
23 |
+
Donation: Please send [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV) or [Paypal](https://www.paypal.me/torounit)
|
24 |
|
25 |
|
26 |
= Translators =
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 3.3.1 =
|
72 |
* Add disable option for date / author and post type archive.
|
73 |
* Bug fix for `parse_request`.
|
74 |
|