diff --git a/functions.php b/functions.php index e60913d..ae7d320 100644 --- a/functions.php +++ b/functions.php @@ -12,6 +12,17 @@ define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/'); require ABSPATH.'/vendor/autoload.php'; +#отключаем автообновления +add_filter('pre_site_transient_update_core',create_function('$a', "return null;")); +wp_clear_scheduled_hook('wp_version_check'); + +remove_action( 'load-update-core.php', 'wp_update_plugins' ); +add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); +wp_clear_scheduled_hook( 'wp_update_plugins' ); + + + + require get_template_directory().'/src/calend-block.php'; require get_template_directory().'/src/calendar.php'; diff --git a/header.php b/header.php index e7ca438..74ae116 100644 --- a/header.php +++ b/header.php @@ -11,7 +11,8 @@ - + + @@ -38,12 +39,7 @@
- - - +