Version Description
Download this release
Release Info
Developer | michaeltyson |
Plugin | Custom Permalinks |
Version | 0.5.1 |
Comparing to | |
See all releases |
Code changes from version 0.5 to 0.5.1
- custom-permalinks.php +10 -5
- readme.txt +3 -1
custom-permalinks.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Permalinks
|
|
4 |
Plugin URI: http://michael.tyson.id.au/wordpress/plugins/custom-permalinks
|
5 |
Donate link: http://michael.tyson.id.au/wordpress/plugins/custom-permalinks
|
6 |
Description: Set custom permalinks on a per-post basis
|
7 |
-
Version: 0.5
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://michael.tyson.id.au
|
10 |
*/
|
@@ -320,10 +320,12 @@ function custom_permalinks_term_options($object) {
|
|
320 |
|
321 |
$permalink = custom_permalinks_permalink_for_term($object->term_id);
|
322 |
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
|
|
|
|
327 |
custom_permalinks_form($permalink, $originalPermalink);
|
328 |
|
329 |
// Move the save button to above this form
|
@@ -673,10 +675,13 @@ add_filter( 'user_trailingslashit', 'custom_permalinks_trailingslash', 10, 2 );
|
|
673 |
add_action( 'edit_form_advanced', 'custom_permalinks_post_options' );
|
674 |
add_action( 'edit_page_form', 'custom_permalinks_page_options' );
|
675 |
add_action( 'edit_tag_form', 'custom_permalinks_term_options' );
|
|
|
676 |
add_action( 'edit_category_form', 'custom_permalinks_term_options' );
|
677 |
add_action( 'save_post', 'custom_permalinks_save_post' );
|
678 |
add_action( 'edited_post_tag', 'custom_permalinks_save_tag' );
|
679 |
add_action( 'edited_category', 'custom_permalinks_save_category' );
|
|
|
|
|
680 |
add_action( 'delete_post_tag', 'custom_permalinks_delete_term' );
|
681 |
add_action( 'delete_post_category', 'custom_permalinks_delete_term' );
|
682 |
add_action( 'admin_menu', 'custom_permalinks_setup_admin' );
|
4 |
Plugin URI: http://michael.tyson.id.au/wordpress/plugins/custom-permalinks
|
5 |
Donate link: http://michael.tyson.id.au/wordpress/plugins/custom-permalinks
|
6 |
Description: Set custom permalinks on a per-post basis
|
7 |
+
Version: 0.5.1
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://michael.tyson.id.au
|
10 |
*/
|
320 |
|
321 |
$permalink = custom_permalinks_permalink_for_term($object->term_id);
|
322 |
|
323 |
+
if ( $object->term_id ) {
|
324 |
+
$originalPermalink = ($object->taxonomy == 'post_tag' ?
|
325 |
+
custom_permalinks_original_tag_link($object->term_id) :
|
326 |
+
custom_permalinks_original_category_link($object->term_id) );
|
327 |
+
}
|
328 |
+
|
329 |
custom_permalinks_form($permalink, $originalPermalink);
|
330 |
|
331 |
// Move the save button to above this form
|
675 |
add_action( 'edit_form_advanced', 'custom_permalinks_post_options' );
|
676 |
add_action( 'edit_page_form', 'custom_permalinks_page_options' );
|
677 |
add_action( 'edit_tag_form', 'custom_permalinks_term_options' );
|
678 |
+
add_action( 'add_tag_form', 'custom_permalinks_term_options' );
|
679 |
add_action( 'edit_category_form', 'custom_permalinks_term_options' );
|
680 |
add_action( 'save_post', 'custom_permalinks_save_post' );
|
681 |
add_action( 'edited_post_tag', 'custom_permalinks_save_tag' );
|
682 |
add_action( 'edited_category', 'custom_permalinks_save_category' );
|
683 |
+
add_action( 'create_post_tag', 'custom_permalinks_save_tag' );
|
684 |
+
add_action( 'create_category', 'custom_permalinks_save_category' );
|
685 |
add_action( 'delete_post_tag', 'custom_permalinks_delete_term' );
|
686 |
add_action( 'delete_post_category', 'custom_permalinks_delete_term' );
|
687 |
add_action( 'admin_menu', 'custom_permalinks_setup_admin' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://michael.tyson.id.au/wordpress/plugins/custom-permalinks
|
|
4 |
Tags: permalink, url, link, address, custom, redirect
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 2.6.2
|
7 |
-
Stable tag: 0.5
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
@@ -23,6 +23,8 @@ over your site structure.
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
|
|
|
|
26 |
0.5: Support for Wordpress sites in subdirectories (i.e., not located at the webroot)
|
27 |
|
28 |
0.4.1: WP 2.7 compatability fixes; fix for bug encountered when publishing a draft, or reverting to draft status, and fix for placeholder permalink value for pages
|
4 |
Tags: permalink, url, link, address, custom, redirect
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 2.6.2
|
7 |
+
Stable tag: 0.5.1
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
+
0.5.1: Compatibility fix for WP 2.7's tag/category pages
|
27 |
+
|
28 |
0.5: Support for Wordpress sites in subdirectories (i.e., not located at the webroot)
|
29 |
|
30 |
0.4.1: WP 2.7 compatability fixes; fix for bug encountered when publishing a draft, or reverting to draft status, and fix for placeholder permalink value for pages
|