Version Description
- Fixed issue with feed URLs in non-webroot blog installations
Download this release
Release Info
Developer | michaeltyson |
Plugin | Custom Permalinks |
Version | 0.7.12 |
Comparing to | |
See all releases |
Code changes from version 0.7.11 to 0.7.12
- custom-permalinks.php +3 -1
- readme.txt +5 -1
custom-permalinks.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Permalinks
|
|
4 |
Plugin URI: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
5 |
Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
6 |
Description: Set custom permalinks on a per-post basis
|
7 |
-
Version: 0.7.
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://atastypixel.com/blog
|
10 |
*/
|
@@ -260,6 +260,8 @@ function custom_permalinks_trailingslash($string, $type) {
|
|
260 |
$url = parse_url(get_bloginfo('url'));
|
261 |
$request = ltrim(substr($string, strlen($url['path'])),'/');
|
262 |
|
|
|
|
|
263 |
if ( trim($_CPRegisteredURL,'/') == trim($request,'/') ) {
|
264 |
return ($string{0} == '/' ? '/' : '') . trailingslashit($url['path']) . $_CPRegisteredURL;
|
265 |
}
|
4 |
Plugin URI: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
5 |
Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
6 |
Description: Set custom permalinks on a per-post basis
|
7 |
+
Version: 0.7.12
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://atastypixel.com/blog
|
10 |
*/
|
260 |
$url = parse_url(get_bloginfo('url'));
|
261 |
$request = ltrim(substr($string, strlen($url['path'])),'/');
|
262 |
|
263 |
+
if ( !trim($request) ) return $string;
|
264 |
+
|
265 |
if ( trim($_CPRegisteredURL,'/') == trim($request,'/') ) {
|
266 |
return ($string{0} == '/' ? '/' : '') . trailingslashit($url['path']) . $_CPRegisteredURL;
|
267 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
|
4 |
Tags: permalink, url, link, address, custom, redirect
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 0.7.
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
@@ -29,6 +29,10 @@ within that category.
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
32 |
= 0.7.11 =
|
33 |
|
34 |
* Fixed issue with pending/draft posts with permalinks
|
4 |
Tags: permalink, url, link, address, custom, redirect
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 0.7.12
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
= 0.7.12 =
|
33 |
+
|
34 |
+
* Fixed issue with feed URLs in non-webroot blog installations
|
35 |
+
|
36 |
= 0.7.11 =
|
37 |
|
38 |
* Fixed issue with pending/draft posts with permalinks
|