Version Description
- Fixed Parse Error
Download this release
Release Info
Developer | sasiddiqui |
Plugin | Custom Permalinks |
Version | 1.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.6 to 1.2.7
- custom-permalinks-main.php +1 -1
- custom-permalinks.php +1 -1
- frontend/class-custom-permalinks-frontend.php +1 -1
- readme.txt +7 -3
custom-permalinks-main.php
CHANGED
@@ -15,7 +15,7 @@ if ( ! function_exists( "add_action" ) || ! function_exists( "add_filter" ) ) {
|
|
15 |
exit();
|
16 |
}
|
17 |
|
18 |
-
define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.2.
|
19 |
|
20 |
if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
|
21 |
define( 'CUSTOM_PERMALINKS_PATH', plugin_dir_path( __FILE__ ) );
|
15 |
exit();
|
16 |
}
|
17 |
|
18 |
+
define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.2.7' );
|
19 |
|
20 |
if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
|
21 |
define( 'CUSTOM_PERMALINKS_PATH', plugin_dir_path( __FILE__ ) );
|
custom-permalinks.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Custom Permalinks
|
5 |
* Plugin URI: https://wordpress.org/plugins/custom-permalinks/
|
6 |
* Description: Set custom permalinks on a per-post basis
|
7 |
-
* Version: 1.2.
|
8 |
* Author: Sami Ahmed Siddiqui
|
9 |
* Author URI: https://www.yasglobal.com/web-design-development/wordpress/custom-permalinks/
|
10 |
* Donate link: https://www.paypal.me/yasglobal
|
4 |
* Plugin Name: Custom Permalinks
|
5 |
* Plugin URI: https://wordpress.org/plugins/custom-permalinks/
|
6 |
* Description: Set custom permalinks on a per-post basis
|
7 |
+
* Version: 1.2.7
|
8 |
* Author: Sami Ahmed Siddiqui
|
9 |
* Author URI: https://www.yasglobal.com/web-design-development/wordpress/custom-permalinks/
|
10 |
* Donate link: https://www.paypal.me/yasglobal
|
frontend/class-custom-permalinks-frontend.php
CHANGED
@@ -233,7 +233,7 @@ class Custom_Permalinks_Frontend {
|
|
233 |
}
|
234 |
|
235 |
if ( ! isset( $posts[0]->ID ) || ! isset( $posts[0]->meta_value )
|
236 |
-
|
237 |
global $wp_query;
|
238 |
|
239 |
// If the post/tag/category we're on has a custom permalink, get it and check against the request
|
233 |
}
|
234 |
|
235 |
if ( ! isset( $posts[0]->ID ) || ! isset( $posts[0]->meta_value )
|
236 |
+
|| empty( $posts[0]->meta_value ) ) {
|
237 |
global $wp_query;
|
238 |
|
239 |
// If the post/tag/category we're on has a custom permalink, get it and check against the request
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/yasglobal
|
|
5 |
Tags: permalink, url, link, address, custom, redirect, custom post type
|
6 |
Requires at least: 2.6
|
7 |
Tested up to: 4.8
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -41,7 +41,7 @@ add_filter( 'custom_permalinks_request_ignore', 'check_xml_sitemap_url' );
|
|
41 |
|
42 |
If you want to exclude permalink from any post type so, use `custom_permalinks_exclude_post_type` filter.
|
43 |
|
44 |
-
|
45 |
`
|
46 |
function yasglobal_exclude_post_types( $post_type ) {
|
47 |
if ( $post_type == 'custompost' ) {
|
@@ -51,7 +51,7 @@ function yasglobal_exclude_post_types( $post_type ) {
|
|
51 |
}
|
52 |
add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types');
|
53 |
`
|
54 |
-
Note:
|
55 |
|
56 |
== Thanks for the Support! ==
|
57 |
|
@@ -67,6 +67,10 @@ The support from the users that love Custom Permalinks is huge. You can support
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
70 |
= 1.2.6 =
|
71 |
|
72 |
* Enhancements
|
5 |
Tags: permalink, url, link, address, custom, redirect, custom post type
|
6 |
Requires at least: 2.6
|
7 |
Tested up to: 4.8
|
8 |
+
Stable tag: 1.2.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
41 |
|
42 |
If you want to exclude permalink from any post type so, use `custom_permalinks_exclude_post_type` filter.
|
43 |
|
44 |
+
custom_permalinks_exclude_post_type filter looks like this:
|
45 |
`
|
46 |
function yasglobal_exclude_post_types( $post_type ) {
|
47 |
if ( $post_type == 'custompost' ) {
|
51 |
}
|
52 |
add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types');
|
53 |
`
|
54 |
+
Note: custom_permalinks_exclude_post_type doesn't work on the posts permalink which has been created previously.
|
55 |
|
56 |
== Thanks for the Support! ==
|
57 |
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 1.2.7 =
|
71 |
+
|
72 |
+
* Fixed Parse Error
|
73 |
+
|
74 |
= 1.2.6 =
|
75 |
|
76 |
* Enhancements
|