[wp-trac] [WordPress Trac] #50052: Plugins & Themes Auto-Updates 🤖
WordPress Trac
noreply at wordpress.org
Mon May 18 19:01:28 UTC 2020
#50052: Plugins & Themes Auto-Updates 🤖
-------------------------------------------------+-------------------------
Reporter: whyisjake | Owner: whyisjake
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.5
Component: Security | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing needs-design-feedback | Focuses: ui,
needs-docs has-patch needs-dev-note | administration
-------------------------------------------------+-------------------------
Comment (by TimothyBlynJacobs):
Seems like `wp_is_auto_update_enabled_for_type` would be useful in `wp-
includes/update.php` since it seems like it isn't just about the admin UI.
The logic in the `WP_Automatic_Updater` seems wrong to me. As far as I can
tell, this will stop autoupdates being triggered from the API if the
corresponding filter is disabled. I think it should be...
{{{#!php
<?php
$update = ! empty( $item->autoupdate );
if ( ! $update && wp_is_auto_update_enabled_for_type( $type ) ) {
$auto_updates = (array) get_site_option( "auto_update_{$type}s",
array() );
$update = in_array( $item->{$type}, $auto_updates, true );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50052#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list