WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #38024, comment 3


Ignore:
Timestamp:
09/13/2016 03:11:15 AM (4 years ago)
Author:
ronalfy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38024, comment 3

    v1 v2  
    99On line 330 is the call for the `upgrade` method for the appropriate plugins or themes. [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-automatic-updater.php#L330 Source].
    1010
    11 Using plugins as an example, in `wp-admin/includes/class-plugin-upgrader.php` on line 172/174 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-plugin-upgrader.php#L174 (Source)] is the call to the clear the plugin cache and run the `run` method for the `WP_Upgrader` parent class. Note that `is_multi` is not being sent as an argument.
     11Using plugins as an example, in `wp-admin/includes/class-plugin-upgrader.php` on line 172/174 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-plugin-upgrader.php#L174 (Source)] is the call to clear the plugin cache and run the `run` method for the `WP_Upgrader` parent class. Note that `is_multi` is not being sent as an argument.
    1212
    1313In `wp-admin/includes/class-wp-upgrader.php`, since `is_multi` is false, it runs the action `upgrader_process_complete` after the first iteration of a plugin or theme. [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-upgrader.php#L759 Source], which I believe is clearing the plugin cache and causing the errors.