{"id":44787,"date":"2020-09-18T21:14:15","date_gmt":"2020-09-18T19:14:15","guid":{"rendered":"https:\/\/atbliss.ru\/?p=44787"},"modified":"2020-11-26T01:46:46","modified_gmt":"2020-11-25T23:46:46","slug":"otklyuchit-obnovlenie-temy-wordpress","status":"publish","type":"post","link":"https:\/\/atbliss.ru\/otklyuchit-obnovlenie-temy-wordpress\/","title":{"rendered":"\u041a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u044b WordPress, \u044f\u0434\u0440\u0430, \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438"},"content":{"rendered":"
\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/p>
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {<\/code>\r\n\r\n\/\/ Disable theme update [iFortress added]<\/code>\r\nremove_action('load-update-core.php','wp_update_themes'); <\/code>\r\nadd_filter('pre_site_transient_update_themes',create_function('$a', \"return null;\")); <\/code>\r\nwp_clear_scheduled_hook('wp_update_themes');<\/code>\r\n\r\n\/\/ Disable theme update notification [iFortress added]<\/code>\r\nfunction disable_theme_update_notification( $value ) {<\/code>\r\nreturn null;<\/code>\r\n}<\/code>\r\nadd_filter( 'site_transient_update_themes', 'disable_theme_update_notification' );<\/code>\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n\u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u0434, \u0430 \u043d\u0438\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u0412\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441.<\/div>\n<\/div>\n\n\n\ndisable-updates.php<\/strong><\/div>\n<\/div>\n\n\n\n\n<\/td>\n <?php<\/span><\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n \/\/ Don’t disable on dev<\/span><\/td>\n<\/tr>\n\n<\/td>\n if<\/span> ( ! defined<\/span>( ‘WP_DEBUG’<\/span> ) || ! WP_DEBUG<\/span> ) {<\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n \/\/ Disable core update checking<\/span><\/td>\n<\/tr>\n\n<\/td>\n add_filter<\/span>( ‘pre_site_transient_update_core’<\/span>, create_function<\/span>( ‘$a’<\/span>, «return null;»<\/span> ) );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘admin_init’<\/span>, ‘_maybe_update_core’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘wp_version_check’<\/span>, ‘wp_version_check’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n \/\/ Remove the updates menu item<\/span><\/td>\n<\/tr>\n\n<\/td>\n function<\/span> yell_remove_update_menu<\/span>() {<\/td>\n<\/tr>\n\n<\/td>\n remove_submenu_page<\/span>( ‘index.php’<\/span>, ‘update-core.php’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n }<\/td>\n<\/tr>\n \n<\/td>\n add_filter<\/span>( ‘admin_menu’<\/span>, ‘yell_remove_update_menu’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n \/\/ Disable plugin update checking<\/span><\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-plugins.php’<\/span>, ‘wp_update_plugins’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-update.php’<\/span>, ‘wp_update_plugins’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-update-core.php’<\/span>, ‘wp_update_plugins’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘admin_init’<\/span>, ‘_maybe_update_plugins’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘wp_update_plugins’<\/span>, ‘wp_update_plugins’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n add_filter<\/span>( ‘pre_site_transient_update_plugins’<\/span>, create_function<\/span>( ‘$a’<\/span>, «return null;»<\/span> ) );<\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n \/\/ Disable theme update checking<\/span><\/strong><\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-themes.php’<\/span>, ‘wp_update_themes’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-update.php’<\/span>, ‘wp_update_themes’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘load-update-core.php’<\/span>, ‘wp_update_themes’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘admin_init’<\/span>, ‘_maybe_update_themes’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n remove_action<\/span>( ‘wp_update_themes’<\/span>, ‘wp_update_themes’<\/span> );<\/td>\n<\/tr>\n\n<\/td>\n add_filter<\/span>( ‘pre_site_transient_update_themes’<\/span>, create_function<\/span>( ‘$a’<\/span>, «return null;»<\/span> ) );<\/td>\n<\/tr>\n\n<\/td>\n <\/td>\n<\/tr>\n \n<\/td>\n }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n <\/p>\n
remove_action('load-update-core.php','wp_update_themes');\r\nadd_filter('pre_site_transient_update_themes',create_function('$a', \"return null;\"));\r\nwp_clear_scheduled_hook('wp_update_themes');<\/pre>\n <\/p>\n
\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0442\u0435\u043c\u044b<\/span><\/h2>\n\n\n\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/div>\n<\/div>\n\u041e\u0434\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445 \u0432\u0441\u0435\u0445 \u0442\u0435\u043c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u043d\u0430\u0434 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0442\u0435\u043c\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0438\u0449\u0435\u0442\u0435. \u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u043f\u043e\u0434 functions.php \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u0442\u0435\u043c\u0435:<\/div>\n<\/section>\n\n\/**\r\n * Disable theme update notification\r\n *\/\r\nfunction disable_theme_update_notification( $value ) {\r\n return null;\r\n}\r\nadd_filter( 'site_transient_update_themes', 'disable_theme_update_notification' );\r\n\r\n<\/code><\/pre>\n\n\n\u0412\u0442\u043e\u0440\u043e\u0435: \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0442\u0435\u043c\u044b. \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0447\u0430\u0441\u0442\u0438 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0432\u0430\u0448\u0435\u0439 \u0442\u0435\u043c\u044b, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430 functions.php \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u0442\u0435\u043c\u044b:<\/div>\n<\/section>\n<\/section>\n<\/div>\n<\/section>\n\n\/**\r\n\u00a0* Disable [this theme]<\/strong> update notification\r\n\u00a0*\/\r\n\r\nfunction disable_theme_update_notification( $value ) {\r\n if ( isset( $value ) && is_object( $value ) ) {\r\n unset( $value->response['this theme<\/strong>'] );\r\n\u00a0 \u00a0 }\r\n\u00a0 \u00a0 return $value;\r\n}\r\nadd_filter( 'site_transient_update_themes', 'disable_theme_update_notification' );<\/code><\/pre>\n<\/div>\n<\/div>\n\n <\/p>\n
\u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 WordPress \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 functions.php.<\/p>\n<\/div>\n
\u0417\u0430\u043f\u0440\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043c<\/span><\/h2>\n\u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 WordPress \u043e\u0442 2.8 \u0434\u043e 3.0:<\/p>\n
\n\nremove_action('load-themes.php', 'wp_update_themes');\r\nremove_action('load-update.php', 'wp_update_themes');\r\nremove_action('admin_init', '_maybe_update_themes');\r\nremove_action('wp_update_themes', 'wp_update_themes');\r\nadd_filter('pre_transient_update_themes', create_function('$a',\"return null;\"));\r\nwp_clear_scheduled_hook('wp_update_themes');<\/code><\/pre>\n<\/div>\n<\/div>\n\u043e\u0442 3.0:<\/p>\n
\n\nremove_action('load-update-core.php','wp_update_themes');\r\nadd_filter('pre_site_transient_update_themes',create_function('$a', \"return null;\"));\r\nwp_clear_scheduled_hook('wp_update_themes');<\/code><\/pre>\n\u0417\u0430\u043f\u0440\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432<\/span><\/h2>\n\u0414\u043b\u044f WordPress \u043e\u0442 2.8 \u0434\u043e 3.0:<\/p>\n
\n\nremove_action('load-plugins.php', 'wp_update_plugins');\r\nremove_action('load-update.php', 'wp_update_plugins');\r\nremove_action('admin_init', '_maybe_update_plugins');\r\nremove_action('wp_update_plugins', 'wp_update_plugins');\r\nadd_filter('pre_transient_update_plugins', create_function('$a', \"return null;\"));\r\nwp_clear_scheduled_hook( 'wp_update_plugins' );<\/pre>\n<\/div>\n<\/div>\n\u043e\u0442 3.0:<\/p>\n
\n\nremove_action( 'load-update-core.php', 'wp_update_plugins' );\r\nadd_filter( 'pre_site_transient_update_plugins', create_function( '$a', \"return null;\" ) );\r\nwp_clear_scheduled_hook( 'wp_update_plugins' );<\/pre>\n<\/div>\n<\/div>\n\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0434\u0432\u0438\u0436\u043a\u0430 WordPress<\/span><\/h2>\n\u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439 \u043e\u0442 2.3 \u0434\u043e 2.7:<\/p>\n
\n\nadd_action('init',create_function('$a',\"remove_action('init','wp_version_check');\"), 2 );\r\nadd_filter('pre_option_update_core', create_function('$a',\"return null;\"));<\/pre>\n<\/div>\n<\/div>\n\u043e\u0442 2.8 \u0434\u043e 3.0:<\/p>\n
\n\nremove_action('wp_version_check','wp_version_check' );\r\nremove_action('admin_init','_maybe_update_core');\r\nadd_filter( 'pre_transient_update_core', create_function'$a',\"return null;\"));\r\nwp_clear_scheduled_hook('wp_version_check');<\/pre>\n<\/div>\n<\/div>\n\u043e\u0442 3.0:<\/p>\n
\n\nadd_filter('pre_site_transient_update_core',create_function('$a', \"return null;\"));\r\nwp_clear_scheduled_hook('wp_version_check');<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u044f\u0434\u0440\u0430 WordPress, \u0442\u0435\u043c, \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442 \u0434\u0435\u043b\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f WordPress \u0438\u043b\u0438 \u0442\u0435\u043c\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b \u0432\u043d\u0435\u0441\u043b\u0438 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0442\u0435\u043c\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f (\u0434\u043e\u0447\u0435\u0440\u043d\u044f\u044f \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432).\u00a0\u0427\u0443\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u0432\u044b\u0439\u0434\u0435\u0442 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u0435\u043c\u044b \u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0435\u0451. \u041a\u043e\u0433\u0434\u0430 \u043e\u043d \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442, \u0447\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043e\u043d \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u0432\u0430\u043c. \u0410 \u043f\u043e\u0442\u043e\u043c \u0441\u043d\u043e\u0432\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0441\u044f.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[933],"tags":[],"yoast_head":"\n
\u041a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u044b WordPress, \u044f\u0434\u0440\u0430, \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n