Changeset 2033509
- Timestamp:
- 02/18/2019 05:05:58 PM (7 years ago)
- Location:
- worker/trunk
- Files:
-
- 8 edited
-
functions.php (modified) (1 diff)
-
init.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/MWP/EventListener/MasterRequest/AuthenticateRequest.php (modified) (1 diff)
-
src/MWP/EventListener/PublicRequest/AddConnectionKeyInfo.php (modified) (3 diffs)
-
src/MWP/Worker/Configuration.php (modified) (1 diff)
-
src/MWP/Worker/Exception.php (modified) (1 diff)
-
version (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
worker/trunk/functions.php
r2030113 r2033509 790 790 } 791 791 792 mwp_context()->optionSet('mwp_public_keys_refresh_time', time(), true); 792 793 mwp_context()->optionSet('mwp_public_keys', $liveKeys, true); 793 794 } -
worker/trunk/init.php
r2030113 r2033509 4 4 Plugin URI: https://managewp.com 5 5 Description: We help you efficiently manage all your WordPress websites. <strong>Updates, backups, 1-click login, migrations, security</strong> and more, on one dashboard. This service comes in two versions: standalone <a href="https://managewp.com">ManageWP</a> service that focuses on website management, and <a href="https://godaddy.com/pro">GoDaddy Pro</a> that includes additional tools for hosting, client management, lead generation, and more. 6 Version: 4.6. 46 Version: 4.6.5 7 7 Author: ManageWP 8 8 Author URI: https://managewp.com … … 569 569 register_activation_hook(__FILE__, 'mwp_activation_hook'); 570 570 571 $GLOBALS['MMB_WORKER_VERSION'] = '4.6. 4';572 $GLOBALS['MMB_WORKER_REVISION'] = '2019-02- 0500:00:00';571 $GLOBALS['MMB_WORKER_VERSION'] = '4.6.5'; 572 $GLOBALS['MMB_WORKER_REVISION'] = '2019-02-18 00:00:00'; 573 573 574 574 // Ensure PHP version compatibility. -
worker/trunk/readme.txt
r2030113 r2033509 3 3 Tags: manage multiple sites, backup, security, migrate, performance, analytics, Manage WordPress, Managed WordPress, WordPress management, WordPress manager, WordPress management, site management, control multiple sites, WordPress management dashboard, administration, automate, automatic, comments, clone, dashboard, duplicate, google analytics, login, manage, managewp, multiple, multisite, remote, seo, spam 4 4 Requires at least: 3.1 5 Tested up to: 5. 05 Tested up to: 5.1 6 6 Stable tag: trunk 7 7 License: GPLv3 or later … … 56 56 57 57 == Changelog == 58 59 = 4.6.5 = 60 61 - Fix: Edge cases where the Worker plugin might not be able to communicate with our system. 58 62 59 63 = 4.6.4 = -
worker/trunk/src/MWP/EventListener/MasterRequest/AuthenticateRequest.php
r2030113 r2033509 47 47 48 48 if (!empty($establishedNewCommunication) && !empty($siteId)) { 49 throw new MWP_Worker_Exception(MWP_Worker_Exception::AUTHENTICATION_ PUBLIC_KEY_EMPTY, "Authentication failed. Deactivate and activate the ManageWP Worker plugin on this site, then re-add itto your ManageWP account.");49 throw new MWP_Worker_Exception(MWP_Worker_Exception::AUTHENTICATION_INVALID_SERVICE_SIGNATURE, "Invalid message signature. Please re-add this website to your ManageWP account."); 50 50 } 51 51 -
worker/trunk/src/MWP/EventListener/PublicRequest/AddConnectionKeyInfo.php
r2030113 r2033509 47 47 $this->context->enqueueStyle('wp-jquery-ui'); 48 48 $this->context->enqueueStyle('wp-jquery-ui-dialog'); 49 } 50 51 protected function checkForKeyRefresh() 52 { 53 if (empty($_GET['mwp_force_key_refresh'])) { 54 return false; 55 } 56 57 mwp_refresh_live_public_keys(array()); 58 return true; 49 59 } 50 60 … … 219 229 return; 220 230 } 231 232 $refreshedKeys = $this->checkForKeyRefresh(); 221 233 222 234 ob_start(); … … 302 314 data-clipboard-target="#connection-key">Copy 303 315 </button> 316 317 <?php if ($refreshedKeys) { ?> 318 <p>Currently loaded keys:</p> 319 <pre><?php 320 if (version_compare(PHP_VERSION, '5.4', '>=') && defined('JSON_PRETTY_PRINT')) { 321 echo trim(json_encode($this->context->optionGet('mwp_public_keys', null), JSON_PRETTY_PRINT)); 322 } else { 323 echo trim(json_encode($this->context->optionGet('mwp_public_keys', null))); 324 } 325 ?></pre> 326 <?php 327 } 328 ?> 304 329 </div> 305 330 <?php -
worker/trunk/src/MWP/Worker/Configuration.php
r2030113 r2033509 87 87 protected function findKeyData($keyName) 88 88 { 89 $key = $this->findKey($keyName); 90 91 if (!empty($key)) { 92 return $key; 93 } 94 95 $time = time(); 96 $keys = $this->context->optionGet('mwp_public_keys', null); 97 $refresh_time = $this->context->optionGet('mwp_public_keys_refresh_time', $time - 100000); 98 99 // if the keys were refreshed recently, give up 100 if (!empty($keys) && $time - $refresh_time < 86400) { 101 return null; 102 } 103 104 mwp_refresh_live_public_keys(array()); 105 106 return $this->findKey($keyName); 107 } 108 109 private function findKey($keyName) 110 { 89 111 $keys = $this->context->optionGet('mwp_public_keys', null); 90 91 if (empty($keys)) {92 mwp_refresh_live_public_keys(array());93 $keys = $this->context->optionGet('mwp_public_keys', null);94 }95 112 96 113 if (empty($keys) || !is_array($keys)) { -
worker/trunk/src/MWP/Worker/Exception.php
r1792348 r2033509 28 28 const AUTHENTICATION_PUBLIC_KEY_EMPTY = 10017; 29 29 const AUTHENTICATION_INVALID_SIGNATURE = 10019; 30 const AUTHENTICATION_INVALID_SERVICE_SIGNATURE = 10040; 30 31 const ACTION_NOT_REGISTERED = 10020; 31 32 const CONNECTION_PUBLIC_KEY_NOT_PROVIDED = 10021; -
worker/trunk/version
r2030113 r2033509 1 4.6. 42 2019-02- 0500:00:001 4.6.5 2 2019-02-18 00:00:00
Note: See TracChangeset
for help on using the changeset viewer.