Version Description
- Fix for invalid URL redirect (eg. http://domain.comfolder/file.html instead of http://domain.com/folder/file.html) when using permalinks without a trailing slash (like .../%postname%.html)
Download this release
Release Info
Developer | michaeltyson |
Plugin | Custom Permalinks |
Version | 0.5.3 |
Comparing to | |
See all releases |
Code changes from version 0.5.2 to 0.5.3
- custom-permalinks.php +3 -3
- readme.txt +49 -12
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 |
*/
|
@@ -246,10 +246,10 @@ function custom_permalinks_request($query) {
|
|
246 |
* @package CustomPermalinks
|
247 |
* @since 0.3
|
248 |
*/
|
249 |
-
function custom_permalinks_trailingslash($string, $type) {
|
250 |
global $_CPRegisteredURL;
|
251 |
if ( trim($_CPRegisteredURL,'/') == trim($string,'/') ) {
|
252 |
-
return $_CPRegisteredURL;
|
253 |
}
|
254 |
return $string;
|
255 |
}
|
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.3
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://michael.tyson.id.au
|
10 |
*/
|
246 |
* @package CustomPermalinks
|
247 |
* @since 0.3
|
248 |
*/
|
249 |
+
function custom_permalinks_trailingslash($string, $type) {
|
250 |
global $_CPRegisteredURL;
|
251 |
if ( trim($_CPRegisteredURL,'/') == trim($string,'/') ) {
|
252 |
+
return ($string{0} == '/' ? '/' : '') . $_CPRegisteredURL;
|
253 |
}
|
254 |
return $string;
|
255 |
}
|
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.8.4
|
7 |
-
Stable tag: 0.5.
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
@@ -23,24 +23,61 @@ over your site structure.
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
-
0.5.
|
27 |
|
28 |
-
|
29 |
|
30 |
-
0.5
|
31 |
|
32 |
-
|
33 |
|
34 |
-
0.
|
35 |
|
36 |
-
|
37 |
|
38 |
-
0.
|
39 |
|
40 |
-
|
41 |
|
42 |
-
0.
|
43 |
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
-
0.1.1: Fixed bug with categories
|
4 |
Tags: permalink, url, link, address, custom, redirect
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 2.8.4
|
7 |
+
Stable tag: 0.5.3
|
8 |
|
9 |
Set custom permalinks on a per-post, per-tag or per-category basis.
|
10 |
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
+
= 0.5.3 =
|
27 |
|
28 |
+
* Fix for invalid URL redirect (eg. http://domain.comfolder/file.html instead of http://domain.com/folder/file.html) when using permalinks without a trailing slash (like .../%postname%.html)
|
29 |
|
30 |
+
= 0.5.2 =
|
31 |
|
32 |
+
* Bugfix for matching posts when there are multiple posts that match parts of the query
|
33 |
|
34 |
+
= 0.5.1 =
|
35 |
|
36 |
+
* Compatibility fix for WP 2.7's tag/category pages
|
37 |
|
38 |
+
= 0.5 =
|
39 |
|
40 |
+
* Support for Wordpress sites in subdirectories (i.e., not located at the webroot)
|
41 |
|
42 |
+
= 0.4.1 =
|
43 |
|
44 |
+
* 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
|
45 |
+
|
46 |
+
= 0.4 =
|
47 |
+
|
48 |
+
* Support for pages, and a fix for draft posts/pages
|
49 |
+
|
50 |
+
= 0.3.1 =
|
51 |
+
|
52 |
+
* Discovered a typo that broke categories
|
53 |
+
|
54 |
+
= 0.3 =
|
55 |
+
|
56 |
+
* Largely rewritten to provide more robust handling of trailing slashes, proper support for trailing URL components (eg. paging)
|
57 |
+
|
58 |
+
= 0.2.2 =
|
59 |
+
|
60 |
+
* Fixed bug with not matching permalinks when / appended to the URL, and workaround for infinite redirect when another plugin is enforcing trailing /
|
61 |
+
|
62 |
+
= 0.2.1 =
|
63 |
+
|
64 |
+
* Better handling of trailing slashes
|
65 |
+
|
66 |
+
= 0.2 =
|
67 |
+
|
68 |
+
* Added 'Custom Permalinks' section under 'Manage' to show existing custom permalinks, and allow reverting to the defaults
|
69 |
+
|
70 |
+
= 0.1.1 =
|
71 |
+
|
72 |
+
* Fixed bug with categories
|
73 |
+
|
74 |
+
== Upgrade Notice ==
|
75 |
+
|
76 |
+
|
77 |
+
== Changelog ==
|
78 |
+
|
79 |
+
= 0.5.3 =
|
80 |
+
|
81 |
+
If you are having problems with Custom Permalinks causing an invalid URL redirect (eg. http://domain.comfolder/file.html instead of http://domain.com/folder/file.html),
|
82 |
+
upgrade: This has now been fixed.
|
83 |
|
|