[wp-trac] [WordPress Trac] #53049: Add changelog release notes to auto update email notifications

WordPress Trac noreply at wordpress.org
Tue Apr 12 22:41:01 UTC 2022


#53049: Add changelog release notes to auto update email notifications
-----------------------------+-----------------------------
 Reporter:  JosVelasco       |       Owner:  josvelasco
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  6.1
Component:  Upgrade/Install  |     Version:
 Severity:  minor            |  Resolution:
 Keywords:  needs-patch      |     Focuses:  administration
-----------------------------+-----------------------------

Comment (by pbiron):

 Replying to [comment:41 oliverstapelfeldt]:
 > What's the best way to trigger an update failure?

 Sorry for not seeing your question earlier.

 The way I generally do it is create a simple plugin that does something
 like:

 {{{#!php
 add_filter(
     'upgrader_pre_install',
     function() {
         return new WP_Error( 'fake_update_error', 'upgrader_pre_install'
 );
     }
 }}}

 Depending on what you're specifically trying to test with a failure, you
 can also hook into `upgrader_post_install` or `upgrader_clear_destination`
 (and there a few other hooks as well).

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


More information about the wp-trac mailing list