Custom Permalinks - Version 0.1.1

Version Description

Download this release

Release Info

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

Code changes from version 0.1 to 0.1.1

Files changed (2) hide show
  1. custom-permalinks.php +2 -2
  2. readme.txt +1 -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.1
8
  Author: Michael Tyson
9
  Author URI: http://michael.tyson.id.au
10
  */
@@ -122,7 +122,7 @@ function custom_permalinks_request($query) {
122
 
123
  $table = get_option('custom_permalink_table');
124
  if ( $table && ($term = $table[$request]) ) {
125
- return array($term['kind'] => $term['slug']);
126
  }
127
 
128
  return $query;
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.1.1
8
  Author: Michael Tyson
9
  Author URI: http://michael.tyson.id.au
10
  */
122
 
123
  $table = get_option('custom_permalink_table');
124
  if ( $table && ($term = $table[$request]) ) {
125
+ return array(($term['kind'] == 'category' ? 'category_name' : 'tag') => $term['slug']);
126
  }
127
 
128
  return $query;
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.1
8
 
9
  Set custom permalinks on a per-post, per-tag or per-category basis.
10
 
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.1.1
8
 
9
  Set custom permalinks on a per-post, per-tag or per-category basis.
10