WordPress.org

Plugin Directory

Changeset 1673532


Ignore:
Timestamp:
06/08/17 16:35:45 (3 months ago)
Author:
freediver
Message:
  • worker 4.2.19
Location:
worker/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • worker/trunk/init.php

    r1635530 r1673532  
    33Plugin Name: ManageWP - Worker 
    44Plugin URI: https://managewp.com 
    5 Description: ManageWP Worker plugin allows you to manage your WordPress sites from one dashboard. Visit <a href="https://managewp.com">ManageWP.com</a> for more information. 
    6 Version: 4.2.18 
     5Description: 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. 
     6Version: 4.2.19 
    77Author: ManageWP 
    88Author URI: https://managewp.com 
     
    564564        register_activation_hook(__FILE__, 'mwp_activation_hook'); 
    565565 
    566         $GLOBALS['MMB_WORKER_VERSION']  = '4.2.18'; 
    567         $GLOBALS['MMB_WORKER_REVISION'] = '2017-04-11 00:00:00'; 
     566        $GLOBALS['MMB_WORKER_VERSION']  = '4.2.19'; 
     567        $GLOBALS['MMB_WORKER_REVISION'] = '2017-06-08 00:00:00'; 
    568568 
    569569        // Ensure PHP version compatibility. 
  • worker/trunk/readme.txt

    r1635530 r1673532  
    44Tags: 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 
    55Requires at least: 3.1 
    6 Tested up to: 4.7 
     6Tested up to: 4.8 
    77Stable tag: trunk 
    88License: GPLv3 or later 
     
    5353 
    5454== Changelog == 
     55 
     56= 4.2.19 = 
     57 
     58- New: Ability to turn off ManageWP analytics. 
     59- Improvement: Multisite compatibility. 
     60- Fix: Plugin installations falsely marked as failed. 
    5561 
    5662= 4.2.18 = 
  • worker/trunk/src/MMB/Core.php

    r1460090 r1673532  
    238238} 
    239239 
    240 if (file_exists(untrailingslashit(WP_PLUGIN_DIR).'/$pluginBasename')) { 
     240if ((file_exists(untrailingslashit(WP_PLUGIN_DIR).'/$pluginBasename')) || 
     241        (function_exists('get_site_option') && array_key_exists('worker/init.php', (array) get_site_option('active_sitewide_plugins')))) { 
    241242    if (in_array('$pluginBasename', (array) get_option('active_plugins'))) { 
    242243        \$GLOBALS['mwp_is_mu'] = true; 
  • worker/trunk/src/MMB/Installer.php

    r1635530 r1673532  
    106106        } 
    107107 
    108         if (!empty($activate) && defined('WP_ADMIN') && WP_ADMIN) { 
     108        if (defined('WP_ADMIN') && WP_ADMIN) { 
    109109            global $wp_current_filter; 
    110110            $wp_current_filter[] = 'load-update-core.php'; 
     
    563563            $result   = $upgrader->bulk_upgrade($themes); 
    564564 
    565             $return  = array(); 
     565            $return = array(); 
    566566            if (!empty($result)) { 
    567567                foreach ($result as $theme_tmp => $theme_info) { 
     
    596596            /** @handled class */ 
    597597            $upgrader = new Language_Pack_Upgrader(mwp_container()->getUpdaterSkin()); 
    598             $result = $upgrader->bulk_upgrade(); 
     598            $result   = $upgrader->bulk_upgrade(); 
    599599 
    600600            if (!empty($result)) { 
  • worker/trunk/src/MWP/Action/GetState.php

    r1460090 r1673532  
    156156            $um = $this->container->getUpdateManager(); 
    157157            foreach ($plugins as &$plugin) { 
     158                if (!isset($plugin['basename'])) { 
     159                    continue; 
     160                } 
     161 
    158162                $update = $um->getPluginUpdate($plugin['basename']); 
    159163                if ($update !== null) { 
     
    197201            $um = $this->container->getUpdateManager(); 
    198202            foreach ($themes as &$theme) { 
     203                if (!isset($theme['slug'])) { 
     204                    continue; 
     205                } 
     206 
    199207                $update = $um->getThemeUpdate($theme['slug']); 
    200208                if ($update !== null) { 
  • worker/trunk/src/MWP/Action/IncrementalBackup/Stats.php

    r1563594 r1673532  
    6969    public function activePluginFilter($plugin) 
    7070    { 
    71         return $plugin['status'] === 'active'; 
     71        return !empty($plugin['status']) && $plugin['status'] === 'active'; 
    7272    } 
    7373 
  • worker/trunk/src/MWP/EventListener/MasterRequest/SetRequestSettings.php

    r1559143 r1673532  
    7070 
    7171        $context->setConstant('WP_ADMIN', true); 
    72         $context->setConstant('WP_NETWORK_ADMIN', false); 
     72        $context->isMultisite() ? $context->setConstant('WP_NETWORK_ADMIN', true) : $context->setConstant('WP_NETWORK_ADMIN', false); 
    7373        $context->setConstant('WP_USER_ADMIN', false); 
    7474        $context->setConstant('WP_BLOG_ADMIN', true); 
  • worker/trunk/src/MWP/EventListener/PublicRequest/SetHitCounter.php

    r1195347 r1673532  
    9393        } 
    9494 
     95        if ($this->isDisabled()) { 
     96            return; 
     97        } 
     98 
    9599        $this->hitCounter->increment(); 
    96100    } 
     
    132136        return $request->getHeader('DNT') !== "1"; 
    133137    } 
     138 
     139    /** 
     140     * Check if user disabled hit count. 
     141     * 
     142     * @return bool 
     143     */ 
     144    private function isDisabled() 
     145    { 
     146        return $this->context->optionGet('disabled_hit_count'); 
     147    } 
    134148} 
  • worker/trunk/src/MWP/IncrementalBackup/Database/StreamableQuerySequenceDump.php

    r1173621 r1673532  
    231231        foreach ($row as $columnName => $value) { 
    232232            $type = $columns[$columnName]['Type']; 
     233 
     234            // Used to determine if the column is enum in case some of the allowed values contain reserved type identifiers 
     235            $trimmedType = strtolower(trim($type)); 
     236 
    233237            // If it should not be enclosed 
    234238            if ($value === null) { 
    235239                $values[] = 'null'; 
    236             } elseif (strpos($type, 'int') !== false 
    237                 || strpos($type, 'float') !== false 
    238                 || strpos($type, 'double') !== false 
    239                 || strpos($type, 'decimal') !== false 
    240                 || strpos($type, 'bool') !== false 
     240            } elseif (strpos($trimmedType, 'enum') !== 0 && 
     241                (strpos($type, 'int') !== false 
     242                    || strpos($type, 'float') !== false 
     243                    || strpos($type, 'double') !== false 
     244                    || strpos($type, 'decimal') !== false 
     245                    || strpos($type, 'bool') !== false) 
    241246            ) { 
    242247                $values[] = $value; 
  • worker/trunk/version

    r1635530 r1673532  
    1 4.2.18 
    2 2017-04-11 00:00:00 
     14.2.19 
     22017-06-08 00:00:00 
Note: See TracChangeset for help on using the changeset viewer.