[wp-trac] [WordPress Trac] #22704: Automatic Core Updates

WordPress Trac noreply at wordpress.org
Thu Sep 19 18:27:52 UTC 2013


#22704: Automatic Core Updates
-----------------------------+-----------------------
 Reporter:  pento            |       Owner:  pento
     Type:  task (blessed)   |      Status:  assigned
 Priority:  normal           |   Milestone:  3.7
Component:  Upgrade/Install  |     Version:  3.5
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+-----------------------

Comment (by DrewAPicture):

 Replying to [comment:49 JustinSainton]:
 > Something like -
 >
 > {{{
 > if ( apply_filters( 'auto_upgrade_email_notice', true, $core_update,
 $theme_updates, $plugin_updates ) )
 >     self::send_email();
 > }}}
 >
 > Thoughts?

 First, I agree a filter here would be nice.

 On the name, personally, I'm kind of partial to filter hooks that enable
 or disable something to use that in the filter hook name.

 Maybe `enable_auto_upgrade_email`? Or the reverse,
 `disable_auto_upgrade_email` default to false, but then you have to test
 the double negative which is a little weird.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22704#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list