WordPress.org

Plugin Directory

Changeset 1635530


Ignore:
Timestamp:
04/11/17 17:02:23 (5 months ago)
Author:
freediver
Message:
  • Worker 4.2.18
Location:
worker/trunk
Files:
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • worker/trunk/functions.php

    r1472139 r1635530  
    460460} 
    461461 
    462 function mmb_worker_header() 
    463 { 
    464     global $mmb_core, $current_user; 
    465  
    466     if (!headers_sent()) { 
    467         if (isset($current_user->ID)) { 
    468             $expiration = time() + apply_filters('auth_cookie_expiration', 10800, $current_user->ID, false); 
    469         } else { 
    470             $expiration = time() + 10800; 
    471         } 
    472  
    473         setcookie(MMB_XFRAME_COOKIE, md5(MMB_XFRAME_COOKIE), $expiration, COOKIEPATH, COOKIE_DOMAIN, false, true); 
    474         $_COOKIE[MMB_XFRAME_COOKIE] = md5(MMB_XFRAME_COOKIE); 
    475     } 
    476 } 
    477462 
    478463function mmb_pre_init_stats($params) 
     
    529514 
    530515    $data              = $mmb_core->stats_instance->pre_init_stats($filter); 
    531     $data['server_ip'] = $_SERVER['SERVER_ADDR']; 
     516    $data['server_ip'] = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : null; 
    532517    $data['uhost']     = php_uname('n'); 
    533518    $hash              = $mmb_core->get_secure_hash(); 
  • worker/trunk/init.php

    r1563594 r1635530  
    44Plugin URI: https://managewp.com 
    55Description: 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.16 
     6Version: 4.2.18 
    77Author: ManageWP 
    88Author URI: https://managewp.com 
     
    564564        register_activation_hook(__FILE__, 'mwp_activation_hook'); 
    565565 
    566         $GLOBALS['MMB_WORKER_VERSION']  = '4.2.16'; 
    567         $GLOBALS['MMB_WORKER_REVISION'] = '2016-12-28 00:00:00'; 
     566        $GLOBALS['MMB_WORKER_VERSION']  = '4.2.18'; 
     567        $GLOBALS['MMB_WORKER_REVISION'] = '2017-04-11 00:00:00'; 
    568568 
    569569        // Ensure PHP version compatibility. 
  • worker/trunk/readme.txt

    r1563594 r1635530  
    22Contributors: managewp,freediver 
    33Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390 
    4 Tags: administration, admin, amazon, analytics, api, automate, automatic, backup, comments, clone, dashboard, database, debug, dropbox, duplicate, events, google analytics, google drive, google, integration, login, manage, managewp, migrate, multiple, multisite, mysql, page, performance, plugin, post, remote, s3, security, seo, spam, speed, stats 
     4Tags: 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 
    66Tested up to: 4.7 
     
    99License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html 
    1010 
    11 ManageWP is the ultimate WordPress productivity tool, allowing you to efficiently manage your websites. 
     11A better way to manage dozens of WordPress websites. 
    1212 
    1313== Description == 
    1414 
    15 [ManageWP](https://managewp.com/ "Manage Multiple WordPress Websites") helps you save time and nerves by automating your workflow, so you could focus on things that matter. It is fast, secure and free for an unlimited number of websites. 
     15So you're looking for a better way to manage WordPress websites? We have you covered! [ManageWP](https://managewp.com/ "Manage Multiple WordPress Websites") is a dashboard that helps you save time and nerves by automating your workflow, so you could focus on things that matter. It is fast, secure and free for an unlimited number of websites. 
    1616 
    1717= Everything in One Place = 
    18 Just the hassle of logging into each of your websites is enough to ruin your day. With ManageWP the data from all of your sites is compiled and shown on a single easy to use dashboard, allowing you to check up on your websites in a single glance. We like the one-click concept, anything that takes longer than that is too much, so we introduced the one-click login, one-click updates and one-click management. That means that with just 1 (yes that’s right) click, you can update all of your websites, clear spam and manage your comments. In addition to this we have added the option of managing collaborators, now making it even easier to work together with your team and clients. All of this in one place. 
    19  
    20 = Monthly Cloud Backups = 
    21 Having a reliable backup is the backbone of any business. That’s why we decided to offer a free monthly backup for all of your websites. And since our backups are incremental and run off-site, it will successfully back up even the most problematic websites. Our free backups include monthly scheduled backup, off-site storage, 1-click restore, US/EU storage choice and the option to exclude files and folders. 
    22  
    23 = Client Reports = 
    24 It’s important to us to know that you can summarize your hard work and wrap it all up in a neat, beautifully designed Client Report and send it to your clients to showcase your work. For this reason, we have added a version of this add-on to our free set of add-ons. This includes; your logo, intro & outro text, notes, reports from all activated ManageWP tools, PDF download, templates, ManageWP watermark and sending from a ManageWP email. 
     18Just the hassle of logging into each of your websites is enough to ruin your day. ManageWP compiles the data from all of your sites on one dashboard, so you can check up on your websites in a single glance. And if you need to take a better look at a particular website, you're just a click away. [Read more](https://managewp.com/features/1-click-login "1-click login") 
     19 
     20= Bulk actions = 
     2157 updates on 12 sites? Update them all with a single click. And it's not just updates. Clean spam, database overhead, run security checks and more - with just one click you can do these things on all your websites at once. [Read more](https://managewp.com/features/manage-plugins-and-themes "Manage plugins & themes") 
     22 
     23= Cloud Backup that just works = 
     24A reliable backup is the backbone of any business. And we have a free monthly backup for all of your websites. It's, incremental, reliable, and works where other backup solutions fail. The free Backup includes monthly scheduled backup, off-site storage, 1-click restore, US/EU storage choice and the option to exclude files and folders. The premium Backup gives you on-demand backups, more frequent automated backup cycles & [more](https://managewp.com/features/backup "ManageWP Backup"). 
     25 
     26= Client Report = 
     27Summarize your hard work in a professional looking report and send it to your clients to showcase your work. The free Client Report includes basic customization and on-demand reports. The premium Client Report lets you white label and automate your reports. [Read more](https://managewp.com/features/backup "Client Report") 
    2528 
    2629= Performance and Security Checks = 
    27 Performance and security are both important aspects of successfully running a websites. An unsecure website can be decremental for any business, and the most important part of security is knowing when your website is in danger. The Security Check makes it easy for you to make sure that all of your sites are clean, and if any files become infected you will be able to spot them on time. On the other hand, the Performance Check gives you insight into what is happening with your website and how it’s performing. It gives you a breakdown of the factors that are affecting your website. You can see each individual factor and its grade, as well as giving you recommendations on how to improve your website performance. 
    28  
    29 = Work On Your Websites With Ease = 
    30 All websites need a bit of pruning from time to time, and this is where Maintenance Mode and Code Snippets can help you tremendously. In just seconds you can activate our Maintenance Mode on any number of websites, your users will stay informed on what is happening and you will avoid losing precious website traffic, while working on your website updates or fixing issues. Code Snippets are also there to make working on your website easy, you can use them to extend the functionality of your website whilst keeping resources required to a minimum. For developers, this powerful tool gives you incredible freedom when managing your websites. 
    31  
    32 = Keep Track With Analytics = 
    33 All Google accounts that you need connected to Google Analytics on one dashboard. With a glance you can keep track of all results, finding out what worked for you and what didn’t. Always be in the know when it comes to your websites, now with just one widget in ManageWP. 
    34  
    35 = Premium Add-ons = 
    36 We have a set of premium add-ons as well, that you can pick and choose and utilize on websites you want to. No more bulk paying for add-ons you don’t use, and prices for add-ons start at only $1/mo. 
    37  
    38 = Uptime Monitor = 
    39 Be the first to know when your website is down with both email and SMS notifications, and get your website back online before anyone else notices. 
    40  
    41 = SEO Ranking = 
    42 Be on top of your website rankings and figure out which keywords work best for you, as well as keeping on eye on your competitors. This way you will know how well you stack up against them. 
    43  
    44 = Advanced Client Reports = 
    45 Keep track of what you're doing for your clients and dazzle them with a summary of your hard work. The Advanced Client Reports include everything in the free version plus an array of additional perks like, no ManageWP watermark, sending from your email and bulk report generator for multiple clients. 
    46  
    47 = Scheduled Backup, Restore & Clone = 
    48 Never leave home without a backup. With the scheduled backup tasks to remote destinations such as our Amazon S3 (both EU and US compliant) or your own, Dropbox and Google Drive you will always have an up-to-date backup which you can use to restore your website if something happened to it.  Not to mention that our backup reliability is 97%, with the improved incremental backup, that takes away troubles such as server timeouts. We have also included the option of letting you handpick what you want to include or exclude in your backups.  With our premium backup you get our Clone add-on, that makes website migration a one-click operation. Pick a source website, pick a destination website, click Go. Yeah, it's that easy. 
    49  
    50 = White Label = 
    51 Rename or completely hide the ManageWP Worker plugin. Clients don’t need to know what you are using to manage their websites. You can use the White label tool to impress your clients and charge the rate you deserve. 
     30Slow or infected websites are bad for business. Luckily, you can now keep tabs on your websites with regular performance & security checks. The free [Security Check](https://managewp.com/features/security-check "security check") & [Performance Check](https://managewp.com/features/performance-scan "performance check") come with fully functional checks and logging. Premium versions let you fully automate the checks, and get an SMS or an email if something's wrong. 
     31 
     32= Google Analytics integration = 
     33Connect multiple Google Analytics accounts, and keep track of all the important metrics from one place.  [Read more](https://managewp.com/features/analytics "Google Analytics integration") 
     34 
     35= Uptime Monitor (premium add-on) = 
     36Be the first to know when your website is down with both email and SMS notifications, and get your website back online before anyone else notices. [Read more](https://managewp.com/features/uptime-monitor "Uptime Monitor") 
     37 
     38= Cloning & Migration (bundled with premium Backup add-on) = 
     39What used to take you hours of work and nerves of steel is now a one-click operation. Pick a source website, pick a destination website, click Go. Within minutes, youw website will be alive and kicking on a new server. Yeah, it's that easy. [Read more](https://managewp.com/features/clone "Cloning & migration") 
     40 
     41= SEO Ranking (premium add-on) = 
     42Be on top of your website rankings and figure out which keywords work best for you, as well as keeping on eye on your competitors. This way you will know how well you stack up against them. [Read more](https://managewp.com/features/seo-ranking "SEO Ranking") 
     43 
     44= White Label (premium add-on) = 
     45Rename or completely hide the ManageWP Worker plugin. Clients don’t need to know what you are using to manage their websites. [Read more](https://managewp.com/features/white-label "White Label") 
    5246 
    5347= Is This All? = 
    54 No way! We've got a bunch of other awesome features, both free and premium, you can check out on our [ManageWP Features Page](https://managewp.com/features "ManageWP Features") 
     48No way! We've got a bunch of other awesome features, both free and premium, you can check out on our [ManageWP features page](https://managewp.com/features "ManageWP Features") 
    5549 
    5650Check out the [ManageWP promo video](https://vimeo.com/120034595). 
     
    5953 
    6054== Changelog == 
     55 
     56= 4.2.18 = 
     57 
     58- Fix: Some compatibility issues with Pantheon hosting. 
     59- Fix: Plugin not activating after installation in some cases. 
     60- Fix: We now correctly return the number of users for multisite installations. 
    6161 
    6262= 4.2.16 = 
     
    579579* Added quick links for sites (menu appears on hover) 
    580580 
    581  
    582581= 3.8.6 = 
    583582* Added seach websites feature 
     
    613612 
    6146131. ManageWP dashboard with a thumbnail view of 20 websites 
    615 2. Assign tags and stars to organize your websites 
     6142. Tags and stars help you organize your websites 
    6166153. A summary of available updates and health of all your websites 
    617 4. Track your website performance regularly, so you could know right away if something goes wrong with it 
    618 5. Managing plugins and themes is as easy with 100 websites as it's with 3 websites 
    619 6. Client Report is a customizable executive summary of everything you've done for your clients 
     6164. Track your website performance regularly, so you could know right away if something goes wrong 
     6175. Managing plugins and themes is just as easy with 100 websites as with 3 websites 
     6186. Client Report is an executive summary of everything you've done for your client 
    6206197. Cloud backups with detailed information about each restore point 
    6216208. Uptime Monitor logs up and down events, and notifies you via email and SMS 
     
    653652== Frequently Asked Questions == 
    654653 
     654= Is ManageWP free? = 
     655 
     656ManageWP is using the freemium model. All the core features are free for an unlimited number of websites. And for those of you who need more, we have a set of premium features to help you out. 
     657 
     658= Do you offer support for free users? = 
     659 
     660Yes. No matter if you're free or premium user, we are here for you 24/7. Expect a 1h average response time and a 65% answer resolution in the first reply. 
     661 
     662= How much do premium ManageWP features cost? = 
     663 
     664Our pricing is highly flexible. We don't charge anything upfront, and the usage is calculated on a per-website, per-addon basis. Like Amazon Web Services. Check out our [pricing page](https://managewp.com/pricing "ManageWP pricing page") for more info. 
     665 
    655666= Is ManageWP secure? = 
    656667 
    657 Yes. All of our code is developed in-house and we have a top notch security team. With over a quarter of a million websites managed since 2012 we did not have a single security incident. We've accomplished this through high standards, vigilance and the help of security researchers, through our [white hat security program](https://managewp.com/white-hat-reward). 
    658  
    659 = Will ManageWP work with sites spread on different hosting accounts? = 
     668Yes. All of our code is developed in-house and we have a top notch security team. With half a million websites managed since 2012 we did not have a single security incident. We've accomplished this through high standards, vigilance and the help of security researchers, through our [white hat security program](https://managewp.com/white-hat-reward). 
     669 
     670= I have websites on several different hosts. Will ManageWP work all of them? = 
    660671 
    661672Yes. ManageWP plays nice with all major hosts, and 99% of the small ones. 
    662673 
     674= Does ManageWP work with multisites? = 
     675 
     676Yes, multisite networks are fully supported, including the ability to backup and clone a multisite network. 
     677 
    663678= Does ManageWP work with WordPress.com sites? = 
    664679 
     
    677692These solutions are simple A-B cloning solutions that tend to break in critical moments. ManageWP does it more intelligently. We first upload the backup archive to a cloud infrastructure that we control, and then we transfer it to the destination website. This effectively compartmentalizes the process into two separate steps, making the whole cloning experience much more robust and stress free. 
    678693 
    679 = Does ManageWP work with caching plugins like W3 Total Cache or WP Super Cache = 
    680  
    681 Yes. 
    682  
    683 = Does ManageWP work with all popular plugins like WordPress SEO by Yoast, WPTouch, Google XML Sitemaps, NextGEN Gallery, Contact Form 7, WooCommerce, iThemes Security, WordPres importer, Wordfence Security and others? = 
    684  
    685 Yes. In most cases where there are conflicts we document them on our [known issues](https://managewp.com/user-guide/known-issues) page. 
    686694 
    687695Got more questions? [Contact us!](http://managewp.com/contact "ManageWP Contact") 
  • worker/trunk/src/MMB/Installer.php

    r1472139 r1635530  
    106106        } 
    107107 
     108        if (!empty($activate) && defined('WP_ADMIN') && WP_ADMIN) { 
     109            global $wp_current_filter; 
     110            $wp_current_filter[] = 'load-update-core.php'; 
     111 
     112            if (function_exists('wp_clean_update_cache')) { 
     113                /** @handled function */ 
     114                wp_clean_update_cache(); 
     115            } 
     116 
     117            /** @handled function */ 
     118            wp_update_plugins(); 
     119 
     120            array_pop($wp_current_filter); 
     121 
     122            /** @handled function */ 
     123            set_current_screen(); 
     124            do_action('load-update-core.php'); 
     125 
     126            /** @handled function */ 
     127            wp_version_check(); 
     128 
     129            /** @handled function */ 
     130            wp_version_check(array(), true); 
     131        } 
     132 
     133        $wrongFileType = false; 
    108134        if ($type == 'plugins') { 
     135            $wrongFileType = true; 
    109136            include_once ABSPATH.'wp-admin/includes/plugin.php'; 
    110137            $all_plugins = get_plugins(); 
     
    116143                    } 
    117144                    if ($install['destination_name'] == $plugin_dir[0]) { 
     145                        $wrongFileType = false; 
    118146                        if ($activate) { 
    119147                            $install_info[$key]['activated'] = activate_plugin($plugin_slug, '', $network_activate); 
    120148                        } 
    121149 
    122                         $install_info[$key]['basename'] = $plugin_slug; 
     150                        $install_info[$key]['basename']  = $plugin_slug; 
    123151                        $install_info[$key]['full_name'] = $plugin['Name']; 
    124                     } 
    125                 } 
    126             } 
    127         } 
    128  
    129         if ($activate) { 
    130             if ($type != 'plugins') { 
    131                 if (count($install_info) == 1) { 
    132                     global $wp_themes; 
    133                     include_once ABSPATH.'wp-includes/theme.php'; 
    134  
    135                     $wp_themes = null; 
    136                     unset($wp_themes); //prevent theme data caching 
    137                     if (function_exists('wp_get_themes')) { 
    138                         $all_themes = wp_get_themes(); 
    139                         foreach ($all_themes as $theme_name => $theme_data) { 
    140                             foreach ($install_info as $key => $install) { 
    141                                 if (!$install || is_wp_error($install)) { 
    142                                     continue; 
    143                                 } 
    144  
    145                                 if ($theme_data->Template == $install['destination_name']) { 
     152                        $install_info[$key]['version']   = $plugin['Version']; 
     153                    } 
     154                } 
     155            } 
     156        } 
     157 
     158        if ($type == 'themes') { 
     159            $wrongFileType = true; 
     160            if (count($install_info) == 1) { 
     161                global $wp_themes; 
     162                include_once ABSPATH.'wp-includes/theme.php'; 
     163 
     164                $wp_themes = null; 
     165                unset($wp_themes); //prevent theme data caching 
     166                if (function_exists('wp_get_themes')) { 
     167                    $all_themes = wp_get_themes(); 
     168                    foreach ($all_themes as $theme_name => $theme_data) { 
     169                        foreach ($install_info as $key => $install) { 
     170                            if (!$install || is_wp_error($install)) { 
     171                                continue; 
     172                            } 
     173 
     174                            if ($theme_data->Template == $install['destination_name']) { 
     175                                $wrongFileType = false; 
     176                                if ($activate) { 
    146177                                    $install_info[$key]['activated'] = switch_theme($theme_data->Template, $theme_data->Stylesheet); 
    147178                                } 
     179                                $install_info[$key]['full_name'] = $theme_data->name; 
     180                                $install_info[$key]['version']   = $theme_data->version; 
    148181                            } 
    149182                        } 
    150                     } else { 
    151                         $all_themes = get_themes(); 
    152                         foreach ($all_themes as $theme_name => $theme_data) { 
    153                             foreach ($install_info as $key => $install) { 
    154                                 if (!$install || is_wp_error($install)) { 
    155                                     continue; 
    156                                 } 
    157  
    158                                 if ($theme_data['Template'] == $install['destination_name']) { 
     183                    } 
     184                } else { 
     185                    $all_themes = get_themes(); 
     186                    foreach ($all_themes as $theme_name => $theme_data) { 
     187                        foreach ($install_info as $key => $install) { 
     188                            if (!$install || is_wp_error($install)) { 
     189                                continue; 
     190                            } 
     191 
     192                            if ($theme_data['Template'] == $install['destination_name']) { 
     193                                $wrongFileType = false; 
     194                                if ($activate) { 
    159195                                    $install_info[$key]['activated'] = switch_theme($theme_data['Template'], $theme_data['Stylesheet']); 
    160196                                } 
     197                                $install_info[$key]['full_name'] = $theme_data->name; 
     198                                $install_info[$key]['version']   = $theme_data->version; 
    161199                            } 
    162200                        } 
     
    165203            } 
    166204        } 
     205 
    167206        // Can generate "E_NOTICE: ob_clean(): failed to delete buffer. No buffer to delete." 
    168207        @ob_clean(); 
     
    176215                        'error' => $value->get_error_message(), 
    177216                        'code'  => $value->get_error_code(), 
     217                    ); 
     218                } elseif ($wrongFileType) { 
     219                    $otherType          = $type === 'themes' ? 'plugins' : $type; 
     220                    $install_info[$key] = array( 
     221                        'error' => 'You can\'t install '.$type.' on '.$otherType.' page.', 
     222                        'code'  => 'wrong_type_of_file', 
    178223                    ); 
    179224                } 
  • worker/trunk/src/MMB/Stats.php

    r1559143 r1635530  
    2323 
    2424        if (!empty($options['users'])) { 
    25             $siteStatistics['users'] = (int)$wpdb->get_var("SELECT COUNT(*) FROM {$basePrefix}users"); 
     25            if (!$this->mmb_multisite) { 
     26                $siteStatistics['users'] = (int)$wpdb->get_var("SELECT COUNT(*) FROM {$basePrefix}users"); 
     27            } else { 
     28                $siteStatistics['users'] = count(get_users( 
     29                    array( 
     30                        'blog_id' => $wpdb->blogid, 
     31                    ) 
     32                )); 
     33            } 
    2634        } 
    2735 
     
    564572        $user_blogs    = get_blogs_of_user($current_user->ID); 
    565573        $network_blogs = $wpdb->get_results("select `blog_id`, `site_id` from `{$wpdb->blogs}`"); 
    566         $user_id       = $GLOBALS['mwp_user_id'] ? $GLOBALS['mwp_user_id'] : false; 
     574        $user_id       = !empty($GLOBALS['mwp_user_id']) ? $GLOBALS['mwp_user_id'] : false; 
    567575 
    568576        $stats = array(); 
  • worker/trunk/src/MWP/EventListener/ActionException/SetExceptionData.php

    r1446497 r1635530  
    1111class MWP_EventListener_ActionException_SetExceptionData implements Symfony_EventDispatcher_EventSubscriberInterface 
    1212{ 
     13    private $configuration; 
     14 
     15    function __construct(MWP_Worker_Configuration $configuration) 
     16    { 
     17        $this->configuration = $configuration; 
     18    } 
     19 
    1320    public static function getSubscribedEvents() 
    1421    { 
     
    3845    } 
    3946 
     47    private function getExtraDataForWorkerException(MWP_Worker_Exception $exception, $verbose) 
     48    { 
     49        if (!$verbose) { 
     50            return array(); 
     51        } 
     52 
     53        $extraData = array(); 
     54 
     55        if ($exception->getCode() === MWP_Worker_Exception::CONNECTION_PUBLIC_KEY_EXISTS) { 
     56            $extraData['publicKey'] = $this->configuration->getPublicKey(); 
     57        } 
     58 
     59        return $extraData; 
     60    } 
     61 
    4062    private function getDataForWorkerException(MWP_Worker_Exception $exception, $verbose) 
    4163    { 
    42         return array( 
     64        return $this->getExtraDataForWorkerException($exception, $verbose) + array( 
    4365            'context' => $exception->getContext(), 
    4466            'type'    => $exception->getErrorName(), 
  • worker/trunk/src/MWP/EventListener/ActionRequest/LogRequest.php

    r1070942 r1635530  
    2222    { 
    2323        return array( 
    24             MWP_Event_Events::ACTION_REQUEST => array('onActionRequest', -200), 
     24            MWP_Event_Events::ACTION_REQUEST  => array('onActionRequest', -200), 
     25            MWP_Event_Events::ACTION_RESPONSE => array('onActionResponse', -200), 
    2526        ); 
    2627    } 
     
    2930    { 
    3031        $request = $event->getRequest(); 
    31         $this->logger->debug('Master request: "{action}"', array( 
     32        $this->logger->debug('Started master request: "{action}"', array( 
     33            'action'  => $request->getAction(), 
     34            'params'  => $request->getParams(), 
     35            'setting' => $request->getSetting(), 
     36        )); 
     37    } 
     38 
     39    public function onActionResponse(MWP_Event_ActionResponse $event) 
     40    { 
     41        $request = $event->getRequest(); 
     42        $this->logger->debug('Finished master request: "{action}"', array( 
    3243            'action'  => $request->getAction(), 
    3344            'params'  => $request->getParams(), 
  • worker/trunk/src/MWP/EventListener/FixCompatibility.php

    r1559143 r1635530  
    3131                array('fixSpamShield', -10000), 
    3232                array('fixWpSpamShieldBan', -10000), 
     33                array('fixPantheonGlobals', -10000), 
    3334            ), 
    3435        ); 
     
    171172        return null; 
    172173    } 
     174 
     175    public function fixPantheonGlobals() 
     176    { 
     177        if (!empty($_ENV['PANTHEON_ENVIRONMENT']) && !isset($GLOBALS['hook_suffix'])) { 
     178            $GLOBALS['hook_suffix'] = null; 
     179        } 
     180    } 
    173181} 
    174182 
  • worker/trunk/src/MWP/ServiceContainer/Production.php

    r1555692 r1635530  
    4646        $dispatcher->addSubscriber(new MWP_EventListener_ActionRequest_LogRequest($this->getLogger())); 
    4747 
    48         $dispatcher->addSubscriber(new MWP_EventListener_ActionException_SetExceptionData()); 
     48        $dispatcher->addSubscriber(new MWP_EventListener_ActionException_SetExceptionData($this->getConfiguration())); 
    4949        $dispatcher->addSubscriber(new MWP_EventListener_ActionException_MultipartException($this->getParameter('multipart_boundary'))); 
    5050 
     
    8484        $mapper->addDefinition('update_worker', new MWP_Action_Definition('mmb_update_worker_plugin')); 
    8585        $mapper->addDefinition('change_post_status', new MWP_Action_Definition('mmb_change_post_status', array('hook_name' => 'init', 'hook_priority' => 9999))); 
    86         $mapper->addDefinition('install_addon', new MWP_Action_Definition('mmb_install_addon', array('hook_name' => 'init', 'hook_priority' => 9999))); 
     86        $mapper->addDefinition('install_addon', new MWP_Action_Definition('mmb_install_addon', array('hook_name' => 'wp_loaded', 'hook_priority' => MAX_PRIORITY_HOOK))); 
    8787        $mapper->addDefinition('get_comments', new MWP_Action_Definition('mmb_get_comments', array('hook_name' => 'init', 'hook_priority' => 9999))); 
    8888        $mapper->addDefinition('bulk_action_comments', new MWP_Action_Definition('mmb_bulk_action_comments', array('hook_name' => 'init', 'hook_priority' => 9999))); 
  • worker/trunk/version

    r1563594 r1635530  
    1 4.2.16 
    2 2016-12-28 00:00:00 
     14.2.18 
     22017-04-11 00:00:00 
Note: See TracChangeset for help on using the changeset viewer.