Version Description
- Fixed draft preview issue(posts + pages)
Download this release
Release Info
Developer | sasiddiqui |
Plugin | Custom Permalinks |
Version | 0.7.28 |
Comparing to | |
See all releases |
Code changes from version 0.7.27 to 0.7.28
- custom-permalinks.php +7 -3
- index.html +0 -0
- readme.txt +5 -1
custom-permalinks.php
CHANGED
@@ -4,13 +4,13 @@ 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 |
Text Domain: custom-permalinks
|
11 |
*/
|
12 |
|
13 |
-
/* Copyright 2008-2016 Michael Tyson <michael@atastypixel.com>
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -185,7 +185,11 @@ function custom_permalinks_request($query) {
|
|
185 |
$_CPRegisteredURL = $request;
|
186 |
|
187 |
if ( $posts[0]->post_status == 'draft' ) {
|
188 |
-
|
|
|
|
|
|
|
|
|
189 |
} else {
|
190 |
$originalUrl = preg_replace( '@/+@', '/', str_replace( trim( strtolower($posts[0]->meta_value),'/' ),
|
191 |
( $posts[0]->post_type == 'page' ?
|
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.28
|
8 |
Author: Michael Tyson
|
9 |
Author URI: http://atastypixel.com/blog
|
10 |
Text Domain: custom-permalinks
|
11 |
*/
|
12 |
|
13 |
+
/* Copyright 2008-2016 Michael Tyson <michael@atastypixel.com> and Sami Ahmed Siddiqui <sami@samisiddiqui.com>
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
185 |
$_CPRegisteredURL = $request;
|
186 |
|
187 |
if ( $posts[0]->post_status == 'draft' ) {
|
188 |
+
if( $posts[0]->post_type == 'page' ) {
|
189 |
+
$originalUrl = "?page_id=" . $posts[0]->ID;
|
190 |
+
} else {
|
191 |
+
$originalUrl = "?p=" . $posts[0]->ID;
|
192 |
+
}
|
193 |
} else {
|
194 |
$originalUrl = preg_replace( '@/+@', '/', str_replace( trim( strtolower($posts[0]->meta_value),'/' ),
|
195 |
( $posts[0]->post_type == 'page' ?
|
index.html
DELETED
File without changes
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/
|
|
5 |
Tags: permalink, url, link, address, custom, redirect
|
6 |
Requires at least: 2.6
|
7 |
Tested up to: 4.5
|
8 |
-
Stable tag: 0.7.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -32,6 +32,10 @@ within that category.
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
|
|
35 |
= 0.7.27 =
|
36 |
|
37 |
* Fixed Loop Redirecting issue
|
5 |
Tags: permalink, url, link, address, custom, redirect
|
6 |
Requires at least: 2.6
|
7 |
Tested up to: 4.5
|
8 |
+
Stable tag: 0.7.28
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 0.7.28 =
|
36 |
+
|
37 |
+
* Fixed draft preview issue(posts + pages)
|
38 |
+
|
39 |
= 0.7.27 =
|
40 |
|
41 |
* Fixed Loop Redirecting issue
|