Проверка новой версии в админке – как отключить?

Собственно, субж.

Проверка наличия новой версии сильно мешает работать – запросы в админке типа POST регулярно заканчиваются матюками сервера про таймаут и отказ MySQL работать так долго.

Каким плагином это можно выключить? Пасиба!

<?php
/*
Plugin Name: Отключить обновления
Description: Отключает сервис обновления WordPress и проверки на новые версии.
Plugin URI:  http://lud.icro.us/disable-wordpress-core-update/
Version:     1.1
Author:      John Blackbourn
Author URI:  http://johnblackbourn.com/
Props:       Matt Mullenweg

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

*/

add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ) );
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );

?>

сохрани в папке с плагинами под именем, с примеру, disable-core-update.php, и активируй

Anonymous
Отправить
Ответ на: