Version Description
- Support Comment permalink.
- Small change in setting page.
- Change default value.
- Bug Fix.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 0.7.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.7.9 to 0.7.9.1
- custom-post-type-permalinks.php +2 -7
- readme.txt +2 -2
custom-post-type-permalinks.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.torounit.com
|
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro-Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
-
Version: 0.7.9
|
9 |
Text Domain: cptp
|
10 |
Domain Path: /
|
11 |
*/
|
@@ -152,13 +152,8 @@ class Custom_Post_Type_Permalinks {
|
|
152 |
$wp_rewrite->add_rewrite_tag( '%'.$post_type.'_id%', '([0-9]{1,})','post_type='.$post_type.'&p=' );
|
153 |
$wp_rewrite->add_rewrite_tag( '%'.$post_type.'_page%', '([0-9]{1,}?)',"page=" );
|
154 |
|
155 |
-
//test
|
156 |
-
if( is_post_type_hierarchical($post_type) ) {
|
157 |
-
$wp_rewrite->add_rewrite_tag( '%'.$post_type.'%', '(?:[^/]+/){1}([^/]+)/?','name=' );
|
158 |
-
}
|
159 |
-
//$wp_rewrite->add_permastruct( $post_type, $permalink, false );
|
160 |
$wp_rewrite->generate_rewrite_rules( $permalink, EP_NONE, true, true, true,true);
|
161 |
-
|
162 |
endforeach;
|
163 |
|
164 |
$taxonomies = get_taxonomies( array("show_ui" => true, "_builtin" => false), 'objects' );
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro-Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
+
Version: 0.7.9.1
|
9 |
Text Domain: cptp
|
10 |
Domain Path: /
|
11 |
*/
|
152 |
$wp_rewrite->add_rewrite_tag( '%'.$post_type.'_id%', '([0-9]{1,})','post_type='.$post_type.'&p=' );
|
153 |
$wp_rewrite->add_rewrite_tag( '%'.$post_type.'_page%', '([0-9]{1,}?)',"page=" );
|
154 |
|
|
|
|
|
|
|
|
|
|
|
155 |
$wp_rewrite->generate_rewrite_rules( $permalink, EP_NONE, true, true, true,true);
|
156 |
+
//$wp_rewrite->add_permastruct( $post_type, $permalink, false );
|
157 |
endforeach;
|
158 |
|
159 |
$taxonomies = get_taxonomies( array("show_ui" => true, "_builtin" => false), 'objects' );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Toro_Unit
|
|
3 |
Tags: custom post type,permalink
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 3.4
|
6 |
-
Stable tag: 0.7.9
|
7 |
|
8 |
Lets you edit the permalink of custom post type.
|
9 |
|
@@ -32,7 +32,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
-
= 0.7.9 =
|
36 |
* Support Comment permalink.
|
37 |
* Small change in setting page.
|
38 |
* Change default value.
|
3 |
Tags: custom post type,permalink
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 3.4
|
6 |
+
Stable tag: 0.7.9.1
|
7 |
|
8 |
Lets you edit the permalink of custom post type.
|
9 |
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 0.7.9.1 =
|
36 |
* Support Comment permalink.
|
37 |
* Small change in setting page.
|
38 |
* Change default value.
|