Version Description
- Improvement: Some of the deprecated WP functions are replaced with newer ones.
- Fix: SQL error populated while converting the IWP backup tables to UTF8 or UTF8MB4 in certain WP sites.
- Fix: DB optimization not working on the WP Maintenance addon.
- Fix: Versions prior to WP v3.9 were getting the wpdb::check_connection() fatal error.
Download this release
Release Info
Developer | infinitewp |
Plugin | InfiniteWP Client |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- addons/wp_optimize/optimize.class.php +1 -1
- backup.class.singlecall.php +1 -3
- core.class.php +3 -3
- init.php +8 -6
- plugins/search/search.php +2 -2
- readme.txt +10 -2
addons/wp_optimize/optimize.class.php
CHANGED
@@ -198,7 +198,7 @@ class IWP_MMB_Optimize extends IWP_MMB_Core
|
|
198 |
global $wpdb;
|
199 |
$db_clean = DB_NAME;
|
200 |
|
201 |
-
$local_query = 'SHOW TABLE STATUS FROM
|
202 |
$result = $wpdb->get_results($local_query);
|
203 |
if ($wpdb->num_rows){
|
204 |
foreach ($result as $row)
|
198 |
global $wpdb;
|
199 |
$db_clean = DB_NAME;
|
200 |
|
201 |
+
$local_query = 'SHOW TABLE STATUS FROM `'. $db_clean.'`';
|
202 |
$result = $wpdb->get_results($local_query);
|
203 |
if ($wpdb->num_rows){
|
204 |
foreach ($result as $row)
|
backup.class.singlecall.php
CHANGED
@@ -1104,9 +1104,7 @@ function delete_task_now($task_name){
|
|
1104 |
}
|
1105 |
$insert_sql .= "\n\n\n";
|
1106 |
|
1107 |
-
|
1108 |
-
$wpdb->flush(); // Free memory.
|
1109 |
-
}
|
1110 |
// Help keep HTTP alive.
|
1111 |
echo ' ';
|
1112 |
flush();
|
1104 |
}
|
1105 |
$insert_sql .= "\n\n\n";
|
1106 |
|
1107 |
+
$wpdb->flush(); // Free memory.
|
|
|
|
|
1108 |
// Help keep HTTP alive.
|
1109 |
echo ' ';
|
1110 |
flush();
|
core.class.php
CHANGED
@@ -259,9 +259,9 @@ class IWP_MMB_Core extends IWP_MMB_Helper
|
|
259 |
/* IWP */
|
260 |
if(defined('MULTISITE') && MULTISITE == true){
|
261 |
global $blog_id;
|
262 |
-
$
|
263 |
-
|
264 |
-
$username = $details->user_login;
|
265 |
}
|
266 |
else{
|
267 |
$current_user = wp_get_current_user();
|
259 |
/* IWP */
|
260 |
if(defined('MULTISITE') && MULTISITE == true){
|
261 |
global $blog_id;
|
262 |
+
$details = get_user_by( 'email',get_blog_option($blog_id, 'admin_email'));
|
263 |
+
//$details = get_userdata($user_id_from_email->ID);
|
264 |
+
$username = $details->user_login;
|
265 |
}
|
266 |
else{
|
267 |
$current_user = wp_get_current_user();
|
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.5.
|
8 |
Author URI: http://www.revmakx.com
|
9 |
*/
|
10 |
/************************************************************
|
@@ -28,7 +28,7 @@ if(basename($_SERVER['SCRIPT_FILENAME']) == "init.php"):
|
|
28 |
exit;
|
29 |
endif;
|
30 |
if(!defined('IWP_MMB_CLIENT_VERSION'))
|
31 |
-
define('IWP_MMB_CLIENT_VERSION', '1.5.
|
32 |
|
33 |
|
34 |
|
@@ -1698,7 +1698,7 @@ if(!function_exists('iwp_mmb_alter_backup_table')){
|
|
1698 |
function iwp_mmb_alter_backup_table(){
|
1699 |
$IWP_MMB_BACKUP_TABLE_VERSION = get_site_option('iwp_backup_table_version');
|
1700 |
|
1701 |
-
if(version_compare($IWP_MMB_BACKUP_TABLE_VERSION, '1.1.
|
1702 |
return true;
|
1703 |
}
|
1704 |
global $wpdb;
|
@@ -1710,10 +1710,12 @@ if(!function_exists('iwp_mmb_alter_backup_table')){
|
|
1710 |
|
1711 |
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
|
1712 |
if (!empty($charset_collate)){
|
1713 |
-
|
|
|
1714 |
}
|
1715 |
else{
|
1716 |
$cachecollation = ' CHARACTER SET utf8 COLLATE utf8_general_ci ';
|
|
|
1717 |
}
|
1718 |
|
1719 |
$sql = array();
|
@@ -1751,13 +1753,13 @@ if(!function_exists('iwp_mmb_alter_backup_table')){
|
|
1751 |
$sql[] = "alter table " . $table_name . " change taskResults taskResults BLOB;";
|
1752 |
$sql[] = "alter table " . $table_name . " change taskResults taskResults TEXT $cachecollation ;";
|
1753 |
|
1754 |
-
$sql[] = "ALTER TABLE " . $table_name . "
|
1755 |
$this_reurn = array();
|
1756 |
foreach($sql as $v){
|
1757 |
//global $wpdb;
|
1758 |
$this_reurn[] = $wpdb->query($v);
|
1759 |
}
|
1760 |
-
update_option( "iwp_backup_table_version", '1.1.
|
1761 |
}
|
1762 |
}
|
1763 |
}
|
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.5.1
|
8 |
Author URI: http://www.revmakx.com
|
9 |
*/
|
10 |
/************************************************************
|
28 |
exit;
|
29 |
endif;
|
30 |
if(!defined('IWP_MMB_CLIENT_VERSION'))
|
31 |
+
define('IWP_MMB_CLIENT_VERSION', '1.5.1');
|
32 |
|
33 |
|
34 |
|
1698 |
function iwp_mmb_alter_backup_table(){
|
1699 |
$IWP_MMB_BACKUP_TABLE_VERSION = get_site_option('iwp_backup_table_version');
|
1700 |
|
1701 |
+
if(version_compare($IWP_MMB_BACKUP_TABLE_VERSION, '1.1.2') != -1){
|
1702 |
return true;
|
1703 |
}
|
1704 |
global $wpdb;
|
1710 |
|
1711 |
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
|
1712 |
if (!empty($charset_collate)){
|
1713 |
+
$cachecollation_table = $charset_collate;
|
1714 |
+
$cachecollation = str_ireplace('DEFAULT ', '', $charset_collate);
|
1715 |
}
|
1716 |
else{
|
1717 |
$cachecollation = ' CHARACTER SET utf8 COLLATE utf8_general_ci ';
|
1718 |
+
$cachecollation_table = $cachecollation;
|
1719 |
}
|
1720 |
|
1721 |
$sql = array();
|
1753 |
$sql[] = "alter table " . $table_name . " change taskResults taskResults BLOB;";
|
1754 |
$sql[] = "alter table " . $table_name . " change taskResults taskResults TEXT $cachecollation ;";
|
1755 |
|
1756 |
+
$sql[] = "ALTER TABLE " . $table_name . " $cachecollation_table ;";
|
1757 |
$this_reurn = array();
|
1758 |
foreach($sql as $v){
|
1759 |
//global $wpdb;
|
1760 |
$this_reurn[] = $wpdb->query($v);
|
1761 |
}
|
1762 |
+
update_option( "iwp_backup_table_version", '1.1.2');
|
1763 |
}
|
1764 |
}
|
1765 |
}
|
plugins/search/search.php
CHANGED
@@ -52,8 +52,8 @@ endif;
|
|
52 |
case 'theme':
|
53 |
$theme = strtolower(get_option('stylesheet'));
|
54 |
$tm = ABSPATH . 'wp-content/themes/'. $theme . '/style.css' ;
|
55 |
-
$tm_extended =
|
56 |
-
|
57 |
$have_theme = array();
|
58 |
if(strpos(strtolower($tm_name), $search_term)>-1){
|
59 |
$have_theme[] = $tm_name;
|
52 |
case 'theme':
|
53 |
$theme = strtolower(get_option('stylesheet'));
|
54 |
$tm = ABSPATH . 'wp-content/themes/'. $theme . '/style.css' ;
|
55 |
+
$tm_extended = wp_get_theme($tm);
|
56 |
+
$tm_name = $tm_extended->get('Name');
|
57 |
$have_theme = array();
|
58 |
if(strpos(strtolower($tm_name), $search_term)>-1){
|
59 |
$have_theme[] = $tm_name;
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: infinitewp
|
3 |
Tags: admin, administration, amazon, api, authentication, automatic, dashboard, dropbox, events, integration, manage, multisite, multiple, notification, performance, s3, security, seo, stats, tracking, infinitewp, updates, backup, restore, iwp, infinite
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.4.
|
6 |
Stable tag: trunk
|
7 |
|
8 |
Install this plugin on unlimited sites and manage them all from a central dashboard.
|
@@ -48,8 +48,16 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
-
= 1.5.0 =
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
* Improvement: Compatibility with PHP7.
|
54 |
* Improvement: Memory usage in Multi call backup now optimized.
|
55 |
* Improvement: Support for new Amazon S3 SDK. Added support for Frankfut bucket which will solve random errors in amazon backup. For php < v5.3.3 will use older S3 library.
|
2 |
Contributors: infinitewp
|
3 |
Tags: admin, administration, amazon, api, authentication, automatic, dashboard, dropbox, events, integration, manage, multisite, multiple, notification, performance, s3, security, seo, stats, tracking, infinitewp, updates, backup, restore, iwp, infinite
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.4.2
|
6 |
Stable tag: trunk
|
7 |
|
8 |
Install this plugin on unlimited sites and manage them all from a central dashboard.
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
51 |
|
52 |
+
|
53 |
+
= 1.5.1 =
|
54 |
+
|
55 |
+
* Improvement: Some of the deprecated WP functions are replaced with newer ones.
|
56 |
+
* Fix: SQL error populated while converting the IWP backup tables to UTF8 or UTF8MB4 in certain WP sites.
|
57 |
+
* Fix: DB optimization not working on the WP Maintenance addon.
|
58 |
+
* Fix: Versions prior to WP v3.9 were getting the wpdb::check_connection() fatal error.
|
59 |
+
|
60 |
+
= 1.5.0 =
|
61 |
* Improvement: Compatibility with PHP7.
|
62 |
* Improvement: Memory usage in Multi call backup now optimized.
|
63 |
* Improvement: Support for new Amazon S3 SDK. Added support for Frankfut bucket which will solve random errors in amazon backup. For php < v5.3.3 will use older S3 library.
|