InfiniteWP Client - Version 1.2.10

Version Description

  • Fix: wp_iwp_redirect sql error is fixed
Download this release

Release Info

Developer infinitewp
Plugin Icon 128x128 InfiniteWP Client
Version 1.2.10
Comparing to
See all releases

Code changes from version 1.2.9 to 1.2.10

addons/google_webmasters/google_webmasters.class.php CHANGED
@@ -9,10 +9,9 @@ if(!function_exists('iwp_mmb_create_webmasters_redirect_table')){
9
  global $wpdb;
10
 
11
  $IWP_MMB_WEBMASTERS_REDIRECT_TABLE_VERSION = get_site_option( 'iwp_webmasters_redirect_table_version' );
12
-
13
  if(version_compare($IWP_MMB_WEBMASTERS_REDIRECT_TABLE_VERSION, '1.0') == -1){
14
 
15
- $table_name = $wpdb->prefix . "iwp_redirects";
16
 
17
  $sql = "
18
  CREATE TABLE IF NOT EXISTS $table_name (
9
  global $wpdb;
10
 
11
  $IWP_MMB_WEBMASTERS_REDIRECT_TABLE_VERSION = get_site_option( 'iwp_webmasters_redirect_table_version' );
 
12
  if(version_compare($IWP_MMB_WEBMASTERS_REDIRECT_TABLE_VERSION, '1.0') == -1){
13
 
14
+ $table_name = $wpdb->base_prefix . "iwp_redirects";
15
 
16
  $sql = "
17
  CREATE TABLE IF NOT EXISTS $table_name (
init.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: InfiniteWP - Client
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
- Version: 1.2.9
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
@@ -26,7 +26,7 @@ Author URI: http://www.revmakx.com
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
- define('IWP_MMB_CLIENT_VERSION', '1.2.9');
30
 
31
 
32
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
@@ -1356,10 +1356,13 @@ if(!function_exists('iwp_mmb_check_redirects')){
1356
  global $wpdb;
1357
  $current_url = ($_SERVER['SERVER_PORT']=='443'?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
1358
  $current_url = rtrim($current_url,'/');
1359
- $success = $wpdb -> get_col($wpdb->prepare("SELECT redirectLink FROM ".$wpdb->prefix."iwp_redirects WHERE oldLink = %s LIMIT 1",$current_url));
1360
- if(count($success)){
1361
- if(function_exists(wp_redirect)){
1362
- wp_redirect($success[0]);
 
 
 
1363
  }
1364
  }
1365
  }
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
+ Version: 1.2.10
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
+ define('IWP_MMB_CLIENT_VERSION', '1.2.10');
30
 
31
 
32
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
1356
  global $wpdb;
1357
  $current_url = ($_SERVER['SERVER_PORT']=='443'?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
1358
  $current_url = rtrim($current_url,'/');
1359
+ $table_name = $wpdb->base_prefix."iwp_redirects";
1360
+ if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
1361
+ $success = $wpdb -> get_col($wpdb->prepare("SELECT redirectLink FROM ".$wpdb->base_prefix."iwp_redirects WHERE oldLink = %s LIMIT 1",$current_url));
1362
+ if(count($success)){
1363
+ if(function_exists(wp_redirect)){
1364
+ wp_redirect($success[0]);
1365
+ }
1366
  }
1367
  }
1368
  }
readme.txt CHANGED
@@ -48,9 +48,13 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
48
 
49
  == Changelog ==
50
 
 
 
 
 
51
  = 1.2.9 =
52
  * Improvement: Support for new addons.
53
- * Fix: Strict Non-static method set_hit_count() and is_bot() fixed.
54
 
55
  = 1.2.8 =
56
  * Fix: Minor security update
48
 
49
  == Changelog ==
50
 
51
+ = 1.2.10 =
52
+ * Fix: wp_iwp_redirect sql error is fixed
53
+
54
+
55
  = 1.2.9 =
56
  * Improvement: Support for new addons.
57
+ * Fix: Strict Non-static method set_hit_count() and is_bot() fixed.
58
 
59
  = 1.2.8 =
60
  * Fix: Minor security update