[wp-trac] [WordPress Trac] #51928: Provide plugin/theme update failure data to dot org

WordPress Trac noreply at wordpress.org
Thu Dec 3 23:11:07 UTC 2020


#51928: Provide plugin/theme update failure data to dot org
-------------------------------------------------+-------------------------
 Reporter:  afragen                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Description changed by afragen:

Old description:

> With plugin auto-updates in core there have been instances of update
> failures leaving the user's site without the update and without any idea
> why the update failed. We receive core auto-update failure data to dot
> org and receiving plugin/theme failure data would help significantly in
> determining the causes of these failures.
>
> I'm mostly guessing from how `class-core-upgrader.php` sends failure data
> via `wp_version_check( $stats )` and I've added similar data and a call
> to `wp_update_{plugins|themes}()` in `class-wp-upgrader.php` Thanks
> @pbiron
>
> If it actually does send the data to dot org it could be useful. This
> requires the return of `WP_Error`s at potential points of failure. I have
> added one of these in #51857.
>
> Feedback from the dot org maintainers will be needed.

New description:

 With plugin auto-updates in core there have been instances of update
 failures leaving the user's site without the update and without any idea
 why the update failed. We receive core auto-update failure data to dot org
 and receiving plugin/theme failure data would help significantly in
 determining the causes of these failures.

 I'm mostly guessing from how `class-core-upgrader.php` sends failure data
 via `wp_version_check( $stats )` and I've added similar data and a call to
 `wp_update_{plugins|themes}( $stats )` in `class-wp-upgrader.php` Thanks
 @pbiron

 If it actually does send the data to dot org it could be useful. This
 requires the return of `WP_Error`s at potential points of failure. I have
 added one of these in #51857.

 Feedback from the dot org maintainers will be needed.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51928#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list