[wp-trac] [WordPress Trac] #22704: Automatic Core Updates
WordPress Trac
noreply at wordpress.org
Fri Sep 13 06:18:50 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 dd32):
{{{
$when_to_update = apply_filters( 'auto_upgrade_when_to_upgrade',
$when_to_update );
if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) )
return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
return apply_filters( 'allow_major_auto_core_updates', $upgrade_major );
return apply_filters( 'auto_upgrader_disabled', false );
if ( ! apply_filters( 'auto_upgrade_ignore_checkout_status', false ) ) {
if ( ! apply_filters( 'auto_upgrade_' . $type, $upgrade, $item ) )
}}}
All of those filters need a once-over for naming, the upgrader already
uses `upgrader_pre_*` for it's filters, makes sense to use something
similar here.
The difference between upgrade/upgrader/update/updates is a worth while
distinction to keep in mind, an `update` is a available update, `upgrader`
is the thing that does the `upgrade`, which is why the existing filters
are a bit here and there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22704#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list