Tag Info

Hot answers tagged

6

You are correct, Wordpress checks for updates to core and plugins every 12 hours, but a better way to word it would be: it checks updates if last update was more than 12 hours ago. The 12 hour setting is hard codded in wp-includes/update.php The last updated dates are stored in wp_options table and the options are: _site_transient_update_core ...


6

To answer the first question... If you look within the WP_Automatic_Updater class found in wp-admin/includes/class-wp-upgrader.php we note the method is_disabled which is used by the method should_update to determine whether or not an automatic update is allowed. The is_disabled method will return true under the following conditions, if ...


5

The relevant functions wp_update_plugins() and wp_maybe_auto_update() are hooked to the wp-cron events of same name, running on twice daily schedule. Logically the initial schedule will start to tick from the time of first run. Due to wp-cron implementation (not being real cron and trigered by site visits rather than server clock) it will also "drift" ...


3

An alternative is to create a simple Must-use plugin so this doesn't depend on the theme. Create a file wp-content/mu-plugins/disable-auto-update-mail.php <?php /* Plugin Name: Disable Auto Update Mails Plugin URI: http://wordpress.stackexchange.com/questions/157056 Version: 1.0 Author: kraftner AuthorURI: ...


2

The "autoupdate" value you see there is just a string in the "response" field from the version check API call. It doesn't determine whether or not your site actually performs an autoupdate. You'll see that field in every response returned from core version checks. Basically, it's just saying that a potential autoupdate is available for download. The ...


2

Make a copy of the site in localhost, this will be better approch. To upgrade site see Upgarding Wordpress - Extended Instructions


1

In your functions.php add: add_filter( 'auto_core_update_send_email', '__return_false' );


1

In WordPress, there are four types of automatic background updates: Core updates Plugin updates Theme updates Translation file updates If you don't like this, then add the constant to deactivate this feature in the wp-config.php, that it works on a default install. Constant to Disable All Updates define( 'AUTOMATIC_UPDATER_DISABLED', TRUE ); Constant ...


1

You might like to check out this plugin which allows you to change where the email goes: background-update-notification-email-address


1

You can use auto_core_update_email filter to change the default admin email. add_filter( 'auto_core_update_email', function($email){ $email['to'] = 'updateWP@example.com'; // Override email address return $email; });


1

WordPress specifically checks that the fileowner of the files it creates are identical to the value returned by getmyuid. Meaning that if it creates files using a different owner than the owner of the WordPress files themselves, it won't use the "direct" mode. Same group is not enough. The files WordPress writes must have the same ownership as the ...


1

You actually have several questions in there, so I'll answer them one by one: However, if I simply do this on my main plugin file, it doesn't work: add_filter('pre_set_site_transient_update_plugins', array('XYZ', 'check_update')); First of all, I'd like to understand what's the difference between the two scenarios. This is failing because ...


1

How to disable core auto updates but enable plugins and themes auto updates If you want to stop the autoupdates of the WordPress core, but to enable them for your Plugins and/or Themes, you can add these lines in the wp-config.php file: Stop the core auto updates: define( 'WP_AUTO_UPDATE_CORE', false ); Then Enable the plugins/themes: ...


1

As it turns out there's a difference between 127.0.0.1 and localhost. Once I change my requests to: http://localhost/white/check-plugins/plugins/test-plugin.zip and a few other instances of the IP version, the update worked like a charm. Stack Overflow has some good answers on why this could be: What is the difference between 127.0.0.1 and localhost?



Only top voted, non community-wiki answers of a minimum length are eligible