wpCentral - Version 1.5.0

Version Description

  • [Security Fix] : We are resetting the wpCentral Auth Keys for the users as a security precaution.
Download this release

Release Info

Developer softacpriya
Plugin Icon 128x128 wpCentral
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.8 to 1.5.0

Files changed (3) hide show
  1. readme.txt +4 -1
  2. wpc_functions.php +20 -0
  3. wpcentral.php +3 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: wpcentral, softaculous, sites, manage sites, backup, plugins, themes, mana
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
- Stable tag: 1.4.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,6 +40,9 @@ Should you have any suggestions to improve wpcentral, want to see some related f
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 1.4.8 =
44
  * [Security Fix] : This version includes a very important security fix. Please update immediately.
45
 
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.3
7
+ Stable tag: 1.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
 
41
  == Changelog ==
42
 
43
+ = 1.5.0 =
44
+ * [Security Fix] : We are resetting the wpCentral Auth Keys for the users as a security precaution.
45
+
46
  = 1.4.8 =
47
  * [Security Fix] : This version includes a very important security fix. Please update immediately.
48
 
wpc_functions.php CHANGED
@@ -2058,6 +2058,7 @@ function wpc_activation_hook(){
2058
  * @since 1.2
2059
  */
2060
  function wpc_load_plugin(){
 
2061
  return wpc_get_connection_key();
2062
  }
2063
 
@@ -3009,4 +3010,23 @@ function wpc_maybe_promo($opts){
3009
  update_option($opt_name, time() + ($opts['interval'] * 86400));
3010
  die('DONE');
3011
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3012
  }
2058
  * @since 1.2
2059
  */
2060
  function wpc_load_plugin(){
2061
+ wpc_update_check();
2062
  return wpc_get_connection_key();
2063
  }
2064
 
3010
  update_option($opt_name, time() + ($opts['interval'] * 86400));
3011
  die('DONE');
3012
  }
3013
+ }
3014
+
3015
+ // Update check
3016
+ function wpc_update_check(){
3017
+
3018
+ $current_version = get_option('wpcentral_version');
3019
+ $version = (int) str_replace('.', '', $current_version);
3020
+
3021
+ if($current_version == WPCENTRAL_VERSION){
3022
+ return true;
3023
+ }
3024
+
3025
+ $connected = wpc_get_option('wpcentral_connected');
3026
+ if(empty($current_version) && empty($connected)){
3027
+ $conn_key = wpc_get_connection_key(1);
3028
+ }
3029
+
3030
+ // Save the new Version
3031
+ update_option('wpcentral_version', WPCENTRAL_VERSION);
3032
  }
wpcentral.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wpCentral
4
  Plugin URI: https://wpcentral.co
5
  Description: wpCentral provides a centralized area where you can manage all your WordPress websites singularly, unitedly as well as efficiently.
6
- Version: 1.4.8
7
  Author: Softaculous Ltd.
8
  Author URI: https://wpcentral.co
9
  License: GPL2
@@ -23,6 +23,8 @@ if (!defined('ABSPATH')){
23
  exit;
24
  }
25
 
 
 
26
  global $wpc_slug;
27
 
28
  $wpc_slug = 'wp-central/wpcentral.php';
3
  Plugin Name: wpCentral
4
  Plugin URI: https://wpcentral.co
5
  Description: wpCentral provides a centralized area where you can manage all your WordPress websites singularly, unitedly as well as efficiently.
6
+ Version: 1.5.0
7
  Author: Softaculous Ltd.
8
  Author URI: https://wpcentral.co
9
  License: GPL2
23
  exit;
24
  }
25
 
26
+ define('WPCENTRAL_VERSION', '1.5.0');
27
+
28
  global $wpc_slug;
29
 
30
  $wpc_slug = 'wp-central/wpcentral.php';