[wp-trac] [WordPress Trac] #27814: Automatic updates should not be silently disabled if I have .hg in file system root
WordPress Trac
noreply at wordpress.org
Tue Apr 15 12:28:57 UTC 2014
#27814: Automatic updates should not be silently disabled if I have .hg in file
system root
-----------------------------+-----------------------------
Reporter: jgehrcke | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version: 3.7
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------------
Comment (by jgehrcke):
Thanks for providing some background info to an ignorant user :-). Okay,
so I have added the following code to my theme's functions.php:
{{{
--- a/functions.php Mon Mar 24 17:59:47 2014 +0100
+++ b/functions.php Tue Apr 15 14:19:08 2014 +0200
@@ -1,4 +1,12 @@
<?php
+// Enable automatic update even if .hg or other VCS is detected.
+// http://make.wordpress.org/core/2013/10/25/the-definitive-guide-to-
disabling-auto-updates-in-wordpress-3-7/
+function update_anyway($checkout, $context) {
+ return false;
+}
+add_filter('automatic_updates_is_vcs_checkout', 'update_anyway', 10, 2);
}}}
Correspondingly, the update check plugin now states:
{{{
INFO: The folder / was detected as being under version control (.hg), but
the automatic_updates_is_vcs_checkout filter is allowing updates.
}}}
Is there a way to trigger the automatic update, or do I have to wait for
WP cron to perform it?
You wrote
{{{
[...] since that's the default and it would only be specified if someone
really wanted it.
}}}
Should that have been "since that's **not** the default"? In that case, I
agree that setting WP_AUTO_UPDATE_CORE to 'minor' should either perform
the backup **or** be verbose about the update progress/errors. Silently
deactivation should not happen.
Thanks for consideration!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27814#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list