Custom Permalinks - Version 1.5.0

Version Description

  • Jun 04, 2019 =

    • Bugs
    • Issue with Polylang Setting Hide Default Language
    • Change deprecated actions with appropriate actions
Download this release

Release Info

Developer sasiddiqui
Plugin Icon Custom Permalinks
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.0 to 1.5.0

admin/class-custom-permalinks-about.php CHANGED
@@ -64,14 +64,14 @@ class Custom_Permalinks_About {
64
 
65
  <div class="product">
66
  <h2><?php _e( 'More from Sami Ahmed Siddiqui', 'custom-permalinks' ); ?></h2>
67
- <span><?php _e('Our List of Plugins provides the services which helps you to manage your site URLs(Permalinks), Prevent your site from XSS Attacks, Brute force attacks, increase your site visitors by adding Structured JSON Markup and so on.', 'custom-permalinks' ); ?></span>
68
  <div class="box recommended">
69
  <div class="img">
70
  <img src= "<?php echo $img_src; ?>/prevent-xss-vulnerability.png" style="transform:scale(1.5)" />
71
  </div>
72
 
73
  <h3><?php _e( 'Prevent XSS Vulnerability', 'custom-permalinks' ); ?></h3>
74
- <p><?php _e( 'Secure your site from the <strong>XSS Attacks</strong> so, your users won\'t lose any kind of information or not redirected to any other site by visiting to your site with the <strong>malicious code</strong> in the URL or so. In this way, users can open your site URLs without any hesitation.', 'custom-permalinks' ); ?></p>
75
  <a href="https://wordpress.org/plugins/prevent-xss-vulnerability/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
76
  </div>
77
 
@@ -81,7 +81,7 @@ class Custom_Permalinks_About {
81
  </div>
82
 
83
  <h3><?php _e( 'Permalinks Customizer', 'custom-permalinks' ); ?></h3>
84
- <p><?php _e( 'Allows you to either define different Permalink Structure or define same Permalink Structure for default and Custom PostTypes, Taxonomies. Plugin automatically creates the user-friendly URLs as per your defined structured that can be edited from the single post/page.', 'custom-permalinks' ); ?></p>
85
  <a href="https://wordpress.org/plugins/permalinks-customizer/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
86
  </div>
87
 
@@ -91,7 +91,7 @@ class Custom_Permalinks_About {
91
  </div>
92
 
93
  <h3><?php _e( 'Http Auth', 'schema-for-article' ); ?></h3>
94
- <p><?php _e( 'Allows you apply <strong>HTTP Auth</strong> on your site. You can apply Http Authentication all over the site or only the admin pages. It helps to stop cralwing on your site while on development or persist the <strong>Brute Attacks</strong> by locking the Admin Pages.', 'schema-for-article' ); ?></p>
95
  <a href="https://wordpress.org/plugins/http-auth/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
96
  </div>
97
 
@@ -141,7 +141,7 @@ class Custom_Permalinks_About {
141
  </div>
142
 
143
  <h3><?php _e( 'Media Post Permalink', 'custom-permalinks' ); ?></h3>
144
- <p><?php _e( 'On uploading any image, let\'s say services.png, WordPress creates the <strong>attachment post</strong> with the permalink of <strong>/services/</strong> and doesn\'t allow you to use that permalink to point your page. In this case, we comes up with this great solution.', 'custom-permalinks' ); ?></p>
145
  <a href="https://wordpress.org/plugins/media-post-permalink/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
146
  </div>
147
  </div>
64
 
65
  <div class="product">
66
  <h2><?php _e( 'More from Sami Ahmed Siddiqui', 'custom-permalinks' ); ?></h2>
67
+ <span><?php _e('Our List of Plugins provides the services which help you to manage your site URLs(Permalinks), Prevent your site from XSS Attacks, Brute force attacks, increase your site visitors by adding Structured JSON Markup and so on.', 'custom-permalinks' ); ?></span>
68
  <div class="box recommended">
69
  <div class="img">
70
  <img src= "<?php echo $img_src; ?>/prevent-xss-vulnerability.png" style="transform:scale(1.5)" />
71
  </div>
72
 
73
  <h3><?php _e( 'Prevent XSS Vulnerability', 'custom-permalinks' ); ?></h3>
74
+ <p><?php _e( 'Secure your site from the <strong>XSS Attacks</strong> so, your users won\'t lose any kind of information or not redirected to any other site by visiting your site with the <strong>malicious code</strong> in the URL or so. In this way, users can open their site URLs without any hesitation.', 'custom-permalinks' ); ?></p>
75
  <a href="https://wordpress.org/plugins/prevent-xss-vulnerability/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
76
  </div>
77
 
81
  </div>
82
 
83
  <h3><?php _e( 'Permalinks Customizer', 'custom-permalinks' ); ?></h3>
84
+ <p><?php _e( 'Allows you to either define different Permalink Structure or define same Permalink Structure for default and Custom PostTypes, Taxonomies. The plugin automatically creates the user-friendly URLs as per your defined structure that can be edited from the single post/page.', 'custom-permalinks' ); ?></p>
85
  <a href="https://wordpress.org/plugins/permalinks-customizer/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
86
  </div>
87
 
91
  </div>
92
 
93
  <h3><?php _e( 'Http Auth', 'schema-for-article' ); ?></h3>
94
+ <p><?php _e( 'Allows you apply <strong>HTTP Auth</strong> on your site. You can apply Http Authentication all over the site or only the admin pages. It helps to stop crawling on your site while on development or persist the <strong>Brute Attacks</strong> by locking the Admin Pages.', 'schema-for-article' ); ?></p>
95
  <a href="https://wordpress.org/plugins/http-auth/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
96
  </div>
97
 
141
  </div>
142
 
143
  <h3><?php _e( 'Media Post Permalink', 'custom-permalinks' ); ?></h3>
144
+ <p><?php _e( 'On uploading any image, let\'s say services.png, WordPress creates the <strong>attachment post</strong> with the permalink of <strong>/services/</strong> and doesn\'t allow you to use that permalink to point your page. In this case, we come up with this great solution.', 'custom-permalinks' ); ?></p>
145
  <a href="https://wordpress.org/plugins/media-post-permalink/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
146
  </div>
147
  </div>
admin/class-custom-permalinks-admin.php CHANGED
@@ -569,7 +569,7 @@ class Custom_Permalinks_Admin {
569
  }
570
 
571
  $content = sprintf(
572
- __( 'This plugin doesn\'t collects/store any user related information.
573
 
574
  To have any kind of further query please feel free to
575
  <a href="%s" target="_blank">contact us</a>.',
569
  }
570
 
571
  $content = sprintf(
572
+ __( 'This plugin doesn\'t collect/store any user related information.
573
 
574
  To have any kind of further query please feel free to
575
  <a href="%s" target="_blank">contact us</a>.',
changelog.txt CHANGED
@@ -24,7 +24,7 @@ This file contains only old changelog. See readme.txt for newer versions.
24
  * Removed extra code which was written for the equal query.
25
  For further details:
26
  https://wordpress.org/support/topic/page-not-found-404-errors-after-latest-update/
27
-
28
  = 1.2.19 - April 10, 2018 =
29
 
30
  * Bugs
@@ -60,7 +60,7 @@ This file contains only old changelog. See readme.txt for newer versions.
60
  * Added PATH_INFO in $_SERVER Variable
61
 
62
  * Bugs
63
- * $this variable issue on static method
64
 
65
  = 1.2.12 - Jan 25, 2018 =
66
 
@@ -100,7 +100,7 @@ This file contains only old changelog. See readme.txt for newer versions.
100
  * Resolving Issues with Cornerstone
101
 
102
  = 1.2.5 - Oct 17, 2017 =
103
-
104
  * Fixed Category/Tag Update Issue + Typo on Admin Page
105
 
106
  = 1.2.4 - Oct 07, 2017 =
@@ -113,7 +113,7 @@ This file contains only old changelog. See readme.txt for newer versions.
113
 
114
  = 1.2.2 - Sept 26, 2017 =
115
 
116
- * Fixed Typo of Class Object for term on Admin Page
117
 
118
  = 1.2.1 - Sept 25, 2017 =
119
 
@@ -130,7 +130,7 @@ This file contains only old changelog. See readme.txt for newer versions.
130
  * Fixed Vulnerability Issues
131
 
132
  = 1.1 - Sept 25, 2017 =
133
-
134
  * Enhancements
135
  * Added PostTypes Permalinks Page
136
  * View all the PostTypes permalinks
@@ -145,17 +145,17 @@ This file contains only old changelog. See readme.txt for newer versions.
145
  * Bug Fixes
146
  * 404 Issues
147
  * Child pages bug
148
-
149
  = 1.0.2 - Aug 15, 2017 =
150
-
151
  * Fixed Notice and some URL Issues
152
 
153
  = 1.0.1 - Aug 12, 2017 =
154
-
155
  * Fixed issue with AMP Pages
156
 
157
  = 1.0 - Aug 11, 2017 =
158
-
159
  * Updated Query on the `custom_permalinks_request` Function
160
 
161
  = 0.9.3 - July 21, 2017 =
@@ -201,7 +201,7 @@ This file contains only old changelog. See readme.txt for newer versions.
201
  = 0.7.23 =
202
 
203
  * Fixed a problem with permalinks with "/" components
204
-
205
  = 0.7.22 =
206
 
207
  * Fixed PHP warning
@@ -257,7 +257,7 @@ This file contains only old changelog. See readme.txt for newer versions.
257
 
258
  = 0.7.10 =
259
 
260
- * Fix for 404 error on static front page with custom permalink set, by Eric TF Bat
261
 
262
  = 0.7.9 =
263
 
@@ -297,7 +297,7 @@ This file contains only old changelog. See readme.txt for newer versions.
297
 
298
  = 0.7.1 =
299
 
300
- * Compatibility fix for last update
301
 
302
  = 0.7 =
303
 
@@ -310,7 +310,7 @@ This file contains only old changelog. See readme.txt for newer versions.
310
  = 0.6 =
311
 
312
  * Fix infinite redirect for permalinks ending in a / (critical fix)
313
- * Moved post/page permalinks settings to top of edit form, replacing prior permalink display
314
 
315
  = 0.5.3 =
316
 
24
  * Removed extra code which was written for the equal query.
25
  For further details:
26
  https://wordpress.org/support/topic/page-not-found-404-errors-after-latest-update/
27
+
28
  = 1.2.19 - April 10, 2018 =
29
 
30
  * Bugs
60
  * Added PATH_INFO in $_SERVER Variable
61
 
62
  * Bugs
63
+ * `$this` variable issue on a static method
64
 
65
  = 1.2.12 - Jan 25, 2018 =
66
 
100
  * Resolving Issues with Cornerstone
101
 
102
  = 1.2.5 - Oct 17, 2017 =
103
+
104
  * Fixed Category/Tag Update Issue + Typo on Admin Page
105
 
106
  = 1.2.4 - Oct 07, 2017 =
113
 
114
  = 1.2.2 - Sept 26, 2017 =
115
 
116
+ * Fixed Typo of Class Object for the term on Admin Page
117
 
118
  = 1.2.1 - Sept 25, 2017 =
119
 
130
  * Fixed Vulnerability Issues
131
 
132
  = 1.1 - Sept 25, 2017 =
133
+
134
  * Enhancements
135
  * Added PostTypes Permalinks Page
136
  * View all the PostTypes permalinks
145
  * Bug Fixes
146
  * 404 Issues
147
  * Child pages bug
148
+
149
  = 1.0.2 - Aug 15, 2017 =
150
+
151
  * Fixed Notice and some URL Issues
152
 
153
  = 1.0.1 - Aug 12, 2017 =
154
+
155
  * Fixed issue with AMP Pages
156
 
157
  = 1.0 - Aug 11, 2017 =
158
+
159
  * Updated Query on the `custom_permalinks_request` Function
160
 
161
  = 0.9.3 - July 21, 2017 =
201
  = 0.7.23 =
202
 
203
  * Fixed a problem with permalinks with "/" components
204
+
205
  = 0.7.22 =
206
 
207
  * Fixed PHP warning
257
 
258
  = 0.7.10 =
259
 
260
+ * Fix for 404 error on the static front page with custom permalink set, by Eric TF Bat
261
 
262
  = 0.7.9 =
263
 
297
 
298
  = 0.7.1 =
299
 
300
+ * Compatibility fix for the last update
301
 
302
  = 0.7 =
303
 
310
  = 0.6 =
311
 
312
  * Fix infinite redirect for permalinks ending in a / (critical fix)
313
+ * Moved post/page permalinks settings to top of the edit form, replacing prior permalink display
314
 
315
  = 0.5.3 =
316
 
custom-permalinks.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Custom Permalinks
4
  * Plugin URI: https://wordpress.org/plugins/custom-permalinks/
5
  * Description: Set custom permalinks on a per-post basis
6
- * Version: 1.4.0
7
  * Author: Sami Ahmed Siddiqui
8
  * Author URI: https://www.custompermalinks.com/
9
  * Donate link: https://www.paypal.me/yasglobal
@@ -17,7 +17,7 @@
17
 
18
  /**
19
  * Custom Permalinks - Update Permalinks of Post/Pages and Categories
20
- * Copyright 2008-2018 Sami Ahmed Siddiqui <sami.siddiqui@yasglobal.com>
21
  *
22
  * This program is free software: you can redistribute it and/or modify
23
  * it under the terms of the GNU General Public License as published by
@@ -64,7 +64,7 @@ class Custom_Permalinks {
64
  }
65
 
66
  if ( ! defined( 'CUSTOM_PERMALINKS_PLUGIN_VERSION' ) ) {
67
- define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.4.0' );
68
  }
69
 
70
  if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
@@ -81,6 +81,7 @@ class Custom_Permalinks {
81
  *
82
  * @access private
83
  * @since 1.2.18
 
84
  * @return void
85
  */
86
  private function includes() {
@@ -111,6 +112,7 @@ class Custom_Permalinks {
111
  *
112
  * @access public
113
  * @since 1.2.22
 
114
  * @return void
115
  */
116
  public static function plugin_activate() {
@@ -135,6 +137,7 @@ class Custom_Permalinks {
135
  *
136
  * @access public
137
  * @since 1.2.18
 
138
  * @return void
139
  */
140
  public function load_textdomain() {
3
  * Plugin Name: Custom Permalinks
4
  * Plugin URI: https://wordpress.org/plugins/custom-permalinks/
5
  * Description: Set custom permalinks on a per-post basis
6
+ * Version: 1.5.0
7
  * Author: Sami Ahmed Siddiqui
8
  * Author URI: https://www.custompermalinks.com/
9
  * Donate link: https://www.paypal.me/yasglobal
17
 
18
  /**
19
  * Custom Permalinks - Update Permalinks of Post/Pages and Categories
20
+ * Copyright 2008-2019 Sami Ahmed Siddiqui <sami.siddiqui@yasglobal.com>
21
  *
22
  * This program is free software: you can redistribute it and/or modify
23
  * it under the terms of the GNU General Public License as published by
64
  }
65
 
66
  if ( ! defined( 'CUSTOM_PERMALINKS_PLUGIN_VERSION' ) ) {
67
+ define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.5.0' );
68
  }
69
 
70
  if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
81
  *
82
  * @access private
83
  * @since 1.2.18
84
+ *
85
  * @return void
86
  */
87
  private function includes() {
112
  *
113
  * @access public
114
  * @since 1.2.22
115
+ *
116
  * @return void
117
  */
118
  public static function plugin_activate() {
137
  *
138
  * @access public
139
  * @since 1.2.18
140
+ *
141
  * @return void
142
  */
143
  public function load_textdomain() {
frontend/class-custom-permalinks-form.php CHANGED
@@ -12,6 +12,8 @@ class Custom_Permalinks_Form {
12
  *
13
  * @access public
14
  * @since 1.2
 
 
15
  * @return void
16
  */
17
  public function init() {
@@ -35,13 +37,16 @@ class Custom_Permalinks_Form {
35
  array( $this, 'custom_permalinks_delete_permalink' ), 10
36
  );
37
 
38
- add_action( 'edit_tag_form',
 
 
 
39
  array( $this, 'custom_permalinks_term_options' )
40
  );
41
- add_action( 'add_tag_form',
42
  array( $this, 'custom_permalinks_term_options' )
43
  );
44
- add_action( 'edit_category_form',
45
  array( $this, 'custom_permalinks_term_options' )
46
  );
47
 
@@ -179,22 +184,15 @@ class Custom_Permalinks_Form {
179
  $content = ob_get_contents();
180
  ob_end_clean();
181
 
182
- if ( preg_match( "@view-post-btn.*?href='([^']+)'@s", $html, $matches ) ) {
183
- $permalink = $matches[1];
184
- } else {
185
- list( $permalink, $post_name ) = get_sample_permalink( $post->ID, $new_title, $new_slug );
186
- if ( false !== strpos( $permalink, '%postname%' )
187
- || false !== strpos( $permalink, '%pagename%' ) ) {
188
- $permalink = str_replace( array( '%pagename%','%postname%' ), $post_name, $permalink );
189
- }
190
- }
191
 
192
  return '<strong>' . __( 'Permalink:', 'custom-permalinks' ) . "</strong>\n" . $content .
193
- ( isset( $view_post ) ? "<span id='view-post-btn'><a href='$permalink' class='button button-small' target='_blank'>$view_post</a></span>\n" : "" );
194
  }
195
 
196
  /**
197
- * Per-post/page options (Wordpress > 2.9)
 
198
  *
199
  * @access public
200
  * @return string
@@ -248,19 +246,11 @@ class Custom_Permalinks_Form {
248
  wp_enqueue_script( 'custom-permalinks-form',
249
  plugins_url( '/js/script-form.min.js', __FILE__ ), array(), false, true
250
  );
251
- if ( isset( $permalink ) && ! empty( $permalink ) ) {
252
- if ( false !== strpos( $permalink, '%postname%' )
253
- || false !== strpos( $permalink, '%pagename%' ) ) {
254
- $permalink = str_replace( array( '%pagename%','%postname%' ), $post_name, $permalink );
255
- }
256
- $content .= ' <span id="view-post-btn">' .
257
- '<a href="/' . $permalink . '" class="button button-small" target="_blank">' . $view_post . '</a>' .
258
- '</span><br>';
259
- } else {
260
- $content .= ' <span id="view-post-btn">' .
261
- '<a href="/' . $original_permalink . '" class="button button-small" target="_blank">' . $view_post .' </a>' .
262
- '</span><br>';
263
- }
264
  }
265
  echo $content;
266
  }
@@ -495,9 +485,12 @@ class Custom_Permalinks_Form {
495
 
496
  /**
497
  * Check Conflicts and resolve it (e.g: Polylang)
 
498
  *
499
  * @access public
500
  * @since 1.2
 
 
501
  * @return string
502
  */
503
  public function custom_permalinks_check_conflicts( $requested_url = '' ) {
@@ -514,9 +507,28 @@ class Custom_Permalinks_Form {
514
  $requested_url = str_replace( 'language/', '', $requested_url );
515
  }
516
 
517
- $remove_lang = ltrim( strstr( $requested_url, '/' ), '/' );
518
- if ( '' != $remove_lang ) {
519
- return $remove_lang;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
520
  }
521
  }
522
  }
12
  *
13
  * @access public
14
  * @since 1.2
15
+ * @updated 1.5.0
16
+ *
17
  * @return void
18
  */
19
  public function init() {
37
  array( $this, 'custom_permalinks_delete_permalink' ), 10
38
  );
39
 
40
+ add_action( 'category_add_form',
41
+ array( $this, 'custom_permalinks_term_options' )
42
+ );
43
+ add_action( 'category_edit_form',
44
  array( $this, 'custom_permalinks_term_options' )
45
  );
46
+ add_action( 'post_tag_add_form',
47
  array( $this, 'custom_permalinks_term_options' )
48
  );
49
+ add_action( 'post_tag_edit_form',
50
  array( $this, 'custom_permalinks_term_options' )
51
  );
52
 
184
  $content = ob_get_contents();
185
  ob_end_clean();
186
 
187
+ $view_post_link = get_permalink( $post );
 
 
 
 
 
 
 
 
188
 
189
  return '<strong>' . __( 'Permalink:', 'custom-permalinks' ) . "</strong>\n" . $content .
190
+ ( isset( $view_post ) ? "<span id='view-post-btn'><a href='$view_post_link' class='button button-small' target='_blank'>$view_post</a></span>\n" : "" );
191
  }
192
 
193
  /**
194
+ * Per-post/page options (Wordpress >= 5.0)
195
+ * WHERE Gutenberg Editor is running
196
  *
197
  * @access public
198
  * @return string
246
  wp_enqueue_script( 'custom-permalinks-form',
247
  plugins_url( '/js/script-form.min.js', __FILE__ ), array(), false, true
248
  );
249
+ $view_post_link = get_permalink( $post );
250
+
251
+ $content .= ' <span id="view-post-btn">' .
252
+ '<a href="' . $view_post_link . '" class="button button-small" target="_blank">' . $view_post . '</a>' .
253
+ '</span><br>';
 
 
 
 
 
 
 
 
254
  }
255
  echo $content;
256
  }
485
 
486
  /**
487
  * Check Conflicts and resolve it (e.g: Polylang)
488
+ * UPDATED for Polylang hide_default setting
489
  *
490
  * @access public
491
  * @since 1.2
492
+ * @updated 1.5.0
493
+ *
494
  * @return string
495
  */
496
  public function custom_permalinks_check_conflicts( $requested_url = '' ) {
507
  $requested_url = str_replace( 'language/', '', $requested_url );
508
  }
509
 
510
+ /**
511
+ * Check if hide_default is true and the current language is not the default.
512
+ * If true the remove the lang code from the url.
513
+ */
514
+ if ( 1 == $polylang_config['hide_default'] ) {
515
+ // get current language
516
+ $current_language = pll_current_language();
517
+
518
+ // get defualt language
519
+ $default_language = pll_default_language();
520
+
521
+ if ( $current_language !== $default_language ) {
522
+ $remove_lang = ltrim( strstr( $requested_url, '/' ), '/' );
523
+ if ( '' != $remove_lang ) {
524
+ return $remove_lang;
525
+ }
526
+ }
527
+ } else {
528
+ $remove_lang = ltrim( strstr( $requested_url, '/' ), '/' );
529
+ if ( '' != $remove_lang ) {
530
+ return $remove_lang;
531
+ }
532
  }
533
  }
534
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sasiddiqui, michaeltyson
3
  Donate link: https://www.paypal.me/yasglobal
4
  Tags: permalink, url, link, address, custom, redirect, custom post type, GDPR, GDPR Compliant
5
  Requires at least: 2.6
6
- Tested up to: 5.0
7
- Stable tag: 1.4.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl.html
10
 
@@ -13,27 +13,27 @@ Set custom permalinks on a per-post, per-tag or per-category basis.
13
  == Description ==
14
 
15
  Lay out your site the way *you* want it. Set the URL of any post, page, tag or category to anything you want.
16
- Old permalinks will redirect properly to the new address. Custom Permalinks gives you ultimate control
17
  over your site structure.
18
 
19
  Be warned: *This plugin is not a replacement for WordPress's built-in permalink system*. Check your WordPress
20
  administration's "Permalinks" settings page first, to make sure that this doesn't already meet your needs.
21
 
22
  This plugin is only useful for assigning custom permalinks for *individual* posts, pages, tags or categories.
23
- It will not apply whole permalink structures, or automatically apply a category's custom permalink to the posts
24
  within that category.
25
 
26
  > If anyone wants the different Structure Tags for their Post types or use symbols in the URLs So, use the [Permalinks Customizer](https://wordpress.org/plugins/permalinks-customizer/) which is a fork of this plugin and contains the enhancement of this plugin.
27
 
28
  == Privacy Policy ==
29
 
30
- This plugin doesn't collects/store any user related information.
31
 
32
  To have any kind of further query please feel free to [contact us](https://www.custompermalinks.com/contact-us/).
33
 
34
  == Filters ==
35
 
36
- Plugin provides some filter which maybe used according to your needs.
37
 
38
  To exclude any Permalink to processed with the plugin so, just add the filter looks like this:
39
  `
@@ -57,14 +57,14 @@ function yasglobal_exclude_post_types( $post_type ) {
57
  add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types');
58
  `
59
 
60
- Note: custom_permalinks_exclude_post_type doesn't work on the posts permalink which has been created previously.
61
 
62
  To remove the like query to being work just add this line in your theme's functions.php:
63
  `
64
  add_filter( 'cp_remove_like_query', '__return_false');
65
  `
66
 
67
- Note: Use `custom_permalinks_like_query` filter if the URLs doesn't works for you after upgrading to v1.2.9
68
 
69
  To add `PATH_INFO` in `$_SERVER` Variable just add this line in your theme's functions.php:
70
  `
@@ -73,7 +73,7 @@ add_filter( 'custom_permalinks_path_info', '__return_true');
73
 
74
  === Thanks for the Support ===
75
 
76
- I does not always provide active support for the Custom Permalinks plugin on the WordPress.org forums, as i have prioritize the email support.
77
  One-on-one email support is available to people who bought [Custom Permalinks Premium](https://www.custompermalinks.com/#pricing-section) only.
78
 
79
  === Bug reports ===
@@ -97,6 +97,12 @@ This process defines you the steps to follow either you are installing through W
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
100
  = 1.4.0 - Nov 08, 2018 =
101
 
102
  * Enhancement
@@ -106,7 +112,7 @@ This process defines you the steps to follow either you are installing through W
106
  = 1.3.0 - June 07, 2018 =
107
 
108
  * Enhancement
109
- * [Conflict with WPML]https://wordpress.org/support/topic/conflict-with-wpml-17/)
110
  * Avoid appending slashes and use trailingslashit instead
111
 
112
  = 1.2.24 - May 31, 2018 =
3
  Donate link: https://www.paypal.me/yasglobal
4
  Tags: permalink, url, link, address, custom, redirect, custom post type, GDPR, GDPR Compliant
5
  Requires at least: 2.6
6
+ Tested up to: 5.2
7
+ Stable tag: 1.5.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl.html
10
 
13
  == Description ==
14
 
15
  Lay out your site the way *you* want it. Set the URL of any post, page, tag or category to anything you want.
16
+ Old permalinks will redirect properly to the new address. Custom Permalinks gives you ultimate control
17
  over your site structure.
18
 
19
  Be warned: *This plugin is not a replacement for WordPress's built-in permalink system*. Check your WordPress
20
  administration's "Permalinks" settings page first, to make sure that this doesn't already meet your needs.
21
 
22
  This plugin is only useful for assigning custom permalinks for *individual* posts, pages, tags or categories.
23
+ It will not apply whole permalink structures or automatically apply a category's custom permalink to the posts
24
  within that category.
25
 
26
  > If anyone wants the different Structure Tags for their Post types or use symbols in the URLs So, use the [Permalinks Customizer](https://wordpress.org/plugins/permalinks-customizer/) which is a fork of this plugin and contains the enhancement of this plugin.
27
 
28
  == Privacy Policy ==
29
 
30
+ This plugin doesn't collect/store any user related information.
31
 
32
  To have any kind of further query please feel free to [contact us](https://www.custompermalinks.com/contact-us/).
33
 
34
  == Filters ==
35
 
36
+ The plugin provides some filter which may be used according to your needs.
37
 
38
  To exclude any Permalink to processed with the plugin so, just add the filter looks like this:
39
  `
57
  add_filter( 'custom_permalinks_exclude_post_type', 'yasglobal_exclude_post_types');
58
  `
59
 
60
+ Note: custom_permalinks_exclude_post_type doesn't work on the post's permalink which has been created previously.
61
 
62
  To remove the like query to being work just add this line in your theme's functions.php:
63
  `
64
  add_filter( 'cp_remove_like_query', '__return_false');
65
  `
66
 
67
+ Note: Use `custom_permalinks_like_query` filter if the URLs doesn't work for you after upgrading to `v1.2.9`
68
 
69
  To add `PATH_INFO` in `$_SERVER` Variable just add this line in your theme's functions.php:
70
  `
73
 
74
  === Thanks for the Support ===
75
 
76
+ I do not always provide active support for the Custom Permalinks plugin on the WordPress.org forums, as I have prioritized the email support.
77
  One-on-one email support is available to people who bought [Custom Permalinks Premium](https://www.custompermalinks.com/#pricing-section) only.
78
 
79
  === Bug reports ===
97
 
98
  == Changelog ==
99
 
100
+ = 1.5.0 - Jun 04, 2019 =
101
+
102
+ * Bugs
103
+ * [Issue with Polylang Setting Hide Default Language](https://wordpress.org/support/topic/issue-with-polylang-setting-hide-default-language/)
104
+ * Change deprecated actions with appropriate actions
105
+
106
  = 1.4.0 - Nov 08, 2018 =
107
 
108
  * Enhancement
112
  = 1.3.0 - June 07, 2018 =
113
 
114
  * Enhancement
115
+ * [Conflict with WPML](https://wordpress.org/support/topic/conflict-with-wpml-17/)
116
  * Avoid appending slashes and use trailingslashit instead
117
 
118
  = 1.2.24 - May 31, 2018 =