Custom Permalinks - Version 0.3.1

Version Description

Download this release

Release Info

Developer michaeltyson
Plugin Icon Custom Permalinks
Version 0.3.1
Comparing to
See all releases

Code changes from version 0.3 to 0.3.1

Files changed (2) hide show
  1. custom-permalinks.php +2 -2
  2. 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.3
8
  Author: Michael Tyson
9
  Author URI: http://michael.tyson.id.au
10
  */
@@ -166,7 +166,7 @@ function custom_permalinks_request($query) {
166
  $_CPRegisteredURL = $request;
167
 
168
 
169
- if ( $term['kind'] == 'category ') {
170
  $originalUrl = str_replace(trim($permalink,'/'),
171
  custom_permalinks_original_category_link($term['id']),
172
  trim($request,'/'));
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.3.1
8
  Author: Michael Tyson
9
  Author URI: http://michael.tyson.id.au
10
  */
166
  $_CPRegisteredURL = $request;
167
 
168
 
169
+ if ( $term['kind'] == 'category') {
170
  $originalUrl = str_replace(trim($permalink,'/'),
171
  custom_permalinks_original_category_link($term['id']),
172
  trim($request,'/'));
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.3
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.3: Largely rewritten to provide more robust handling of trailing slashes, proper support for trailing URL components (eg. paging)
27
 
28
  0.2.2: Fixed bug with not matching permalinks when / appended to the URL, and workaround for infinite redirect when another plugin is enforcing trailing /
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.3.1
8
 
9
  Set custom permalinks on a per-post, per-tag or per-category basis.
10
 
23
 
24
  == Changelog ==
25
 
26
+ 0.3.1: Discovered a typo that broke categories
27
+
28
  0.3: Largely rewritten to provide more robust handling of trailing slashes, proper support for trailing URL components (eg. paging)
29
 
30
  0.2.2: Fixed bug with not matching permalinks when / appended to the URL, and workaround for infinite redirect when another plugin is enforcing trailing /