Custom Permalinks - Version 1.2.1

Version Description

  • Fixed Class Typo
Download this release

Release Info

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

Code changes from version 1.2 to 1.2.1

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.1' );
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.1
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
@@ -48,9 +48,9 @@ class Custom_Permalinks_Frontend {
48
  if ( $ignore === '__true' ) return $query;
49
 
50
  if ( defined( 'POLYLANG_VERSION' ) ) {
51
- require_once( CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-admin.php' );
52
- $custom_permalinks_admin = new Custom_Permalinks_Admin();
53
- $request = $custom_permalinks_admin->custom_permalinks_check_conflicts( $request );
54
  }
55
  $request_noslash = preg_replace( '@/+@','/', trim( $request, '/' ) );
56
 
@@ -170,9 +170,9 @@ class Custom_Permalinks_Frontend {
170
  if ( ( $pos = strpos( $request, "?" ) ) ) $request = substr( $request, 0, $pos );
171
 
172
  if ( defined( 'POLYLANG_VERSION' ) ) {
173
- require_once( CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-admin.php' );
174
- $custom_permalinks_admin = new Custom_Permalinks_Admin();
175
- $request = $custom_permalinks_admin->custom_permalinks_check_conflicts( $request );
176
  }
177
 
178
  global $wp_query;
48
  if ( $ignore === '__true' ) return $query;
49
 
50
  if ( defined( 'POLYLANG_VERSION' ) ) {
51
+ require_once( CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-form.php' );
52
+ $custom_permalinks_form = new Custom_Permalinks_Form();
53
+ $request = $custom_permalinks_form->custom_permalinks_check_conflicts( $request );
54
  }
55
  $request_noslash = preg_replace( '@/+@','/', trim( $request, '/' ) );
56
 
170
  if ( ( $pos = strpos( $request, "?" ) ) ) $request = substr( $request, 0, $pos );
171
 
172
  if ( defined( 'POLYLANG_VERSION' ) ) {
173
+ require_once( CUSTOM_PERMALINKS_PATH . 'admin/class-custom-permalinks-form.php' );
174
+ $custom_permalinks_form = new Custom_Permalinks_Form();
175
+ $request = $custom_permalinks_form->custom_permalinks_check_conflicts( $request );
176
  }
177
 
178
  global $wp_query;
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
 
@@ -47,6 +47,9 @@ add_filter( 'custom_permalinks_request_ignore', 'check_xml_sitemap_url' );
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.2 =
51
 
52
  * 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.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.2.1 =
51
+ * Fixed Class Typo
52
+
53
  = 1.2 =
54
 
55
  * Enhancements