Version Description
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 0.7.5.1 |
Comparing to | |
See all releases |
Code changes from version 0.7.5 to 0.7.5.1
- custom-post-type-permalinks.php +6 -2
- readme.txt +1 -1
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.5
|
9 |
Text Domain: cptp
|
10 |
Domain Path: /
|
11 |
*/
|
@@ -298,7 +298,6 @@ class Custom_Post_Type_Permalinks_Admin {
|
|
298 |
function __construct () {
|
299 |
add_action('init', array(&$this,'load_textdomain'));
|
300 |
add_action('admin_init', array(&$this,'settings_api_init'),10);
|
301 |
-
add_action('admin_init', array(&$this,'set_rules'),50);
|
302 |
}
|
303 |
|
304 |
function load_textdomain() {
|
@@ -357,13 +356,17 @@ class Custom_Post_Type_Permalinks_Admin {
|
|
357 |
);
|
358 |
|
359 |
register_setting('permalink','no_taxonomy_structure');
|
|
|
360 |
if(isset($_POST['submit']) && strpos($_POST['_wp_http_referer'],'options-permalink.php') !== FALSE ) {
|
|
|
361 |
if(!isset($_POST['no_taxonomy_structure'])){
|
362 |
$set = true;
|
363 |
}else {
|
364 |
$set = false;
|
365 |
}
|
366 |
update_option('no_taxonomy_structure', $set);
|
|
|
|
|
367 |
}
|
368 |
}
|
369 |
|
@@ -373,6 +376,7 @@ class Custom_Post_Type_Permalinks_Admin {
|
|
373 |
}
|
374 |
|
375 |
function setting_section_callback_function() {
|
|
|
376 |
?>
|
377 |
<p><?php _e("Setting permalinks of custom post type.",'cptp');?><br />
|
378 |
<?php _e("The tags you can use is WordPress Structure Tags and '%{custom_taxonomy_slug}%'.",'cptp');?><br />
|
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.5.1
|
9 |
Text Domain: cptp
|
10 |
Domain Path: /
|
11 |
*/
|
298 |
function __construct () {
|
299 |
add_action('init', array(&$this,'load_textdomain'));
|
300 |
add_action('admin_init', array(&$this,'settings_api_init'),10);
|
|
|
301 |
}
|
302 |
|
303 |
function load_textdomain() {
|
356 |
);
|
357 |
|
358 |
register_setting('permalink','no_taxonomy_structure');
|
359 |
+
|
360 |
if(isset($_POST['submit']) && strpos($_POST['_wp_http_referer'],'options-permalink.php') !== FALSE ) {
|
361 |
+
|
362 |
if(!isset($_POST['no_taxonomy_structure'])){
|
363 |
$set = true;
|
364 |
}else {
|
365 |
$set = false;
|
366 |
}
|
367 |
update_option('no_taxonomy_structure', $set);
|
368 |
+
|
369 |
+
$this->set_rules();
|
370 |
}
|
371 |
}
|
372 |
|
376 |
}
|
377 |
|
378 |
function setting_section_callback_function() {
|
379 |
+
|
380 |
?>
|
381 |
<p><?php _e("Setting permalinks of custom post type.",'cptp');?><br />
|
382 |
<?php _e("The tags you can use is WordPress Structure Tags and '%{custom_taxonomy_slug}%'.",'cptp');?><br />
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Toro_Unit
|
|
3 |
Tags: custom post type,permalink
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 3.3
|
6 |
-
Stable tag: 0.7.5
|
7 |
|
8 |
Lets you edit the permalink of custom post type.
|
9 |
|
3 |
Tags: custom post type,permalink
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 3.3
|
6 |
+
Stable tag: 0.7.5.1
|
7 |
|
8 |
Lets you edit the permalink of custom post type.
|
9 |
|