Custom Permalinks - Version 1.7.1

Version Description

  • Aug 30, 2020 =

    • Bugs
    • Fix PHP notice (start reporting with WordPress 5.5)
Download this release

Release Info

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

Code changes from version 1.7.0 to 1.7.1

admin/css/{about-plugins-1.7.0.min.css → about-plugins-1.7.1.min.css} RENAMED
File without changes
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.7.0
7
  * Author: Sami Ahmed Siddiqui
8
  * Author URI: https://www.custompermalinks.com/
9
  * License: GPLv3
@@ -51,7 +51,7 @@ class Custom_Permalinks
51
  }
52
 
53
  if ( ! defined( 'CUSTOM_PERMALINKS_PLUGIN_VERSION' ) ) {
54
- define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.7.0' );
55
  }
56
 
57
  if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
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.7.1
7
  * Author: Sami Ahmed Siddiqui
8
  * Author URI: https://www.custompermalinks.com/
9
  * License: GPLv3
51
  }
52
 
53
  if ( ! defined( 'CUSTOM_PERMALINKS_PLUGIN_VERSION' ) ) {
54
+ define( 'CUSTOM_PERMALINKS_PLUGIN_VERSION', '1.7.1' );
55
  }
56
 
57
  if ( ! defined( 'CUSTOM_PERMALINKS_PATH' ) ) {
frontend/class-custom-permalinks-form.php CHANGED
@@ -706,8 +706,11 @@ class Custom_Permalinks_Form
706
  {
707
  register_rest_route( 'custom-permalinks/v1', '/get-permalink/(?P<id>\d+)',
708
  array(
709
- 'methods' => 'GET',
710
- 'callback' => array( $this, 'refresh_meta_form' ),
 
 
 
711
  )
712
  );
713
  }
706
  {
707
  register_rest_route( 'custom-permalinks/v1', '/get-permalink/(?P<id>\d+)',
708
  array(
709
+ 'methods' => 'GET',
710
+ 'callback' => array( $this, 'refresh_meta_form' ),
711
+ 'permission_callback' => function() {
712
+ return current_user_can( 'edit_posts' );
713
+ },
714
  )
715
  );
716
  }
frontend/js/{script-form-1.7.0.min.js → script-form-1.7.1.min.js} RENAMED
File without changes
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sasiddiqui, michaeltyson
3
  Tags: permalink, url, link, address, custom, redirect, custom post type, GDPR, GDPR Compliant
4
  Requires at least: 2.6
5
  Tested up to: 5.5
6
- Stable tag: 1.7.0
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl.html
9
 
@@ -173,6 +173,11 @@ This process defines you the steps to follow either you are installing through W
173
 
174
  == Changelog ==
175
 
 
 
 
 
 
176
  = 1.7.0 - Aug 20, 2020 =
177
 
178
  * Bugs
3
  Tags: permalink, url, link, address, custom, redirect, custom post type, GDPR, GDPR Compliant
4
  Requires at least: 2.6
5
  Tested up to: 5.5
6
+ Stable tag: 1.7.1
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl.html
9
 
173
 
174
  == Changelog ==
175
 
176
+ = 1.7.1 - Aug 30, 2020 =
177
+
178
+ * Bugs
179
+ * Fix PHP notice (start reporting with WordPress 5.5)
180
+
181
  = 1.7.0 - Aug 20, 2020 =
182
 
183
  * Bugs