{"id":1728,"date":"2014-04-12T06:20:31","date_gmt":"2014-04-12T06:20:31","guid":{"rendered":"http:\/\/musilda.cz\/?p=1728"},"modified":"2014-04-12T06:20:31","modified_gmt":"2014-04-12T06:20:31","slug":"vypnuti-automatickych-aktualizaci-wordpressu","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/vypnuti-automatickych-aktualizaci-wordpressu\/","title":{"rendered":"Vypnut\u00ed automatick\u00fdch aktualizac\u00ed WordPressu"},"content":{"rendered":"
Od verze 3.7 se ve WordPressu objevila novinka ve form\u011b automatick\u00fdch aktualizac\u00ed. Pokud chcete m\u00edt nad sv\u00fdm webem absolutn\u00ed kontrolu a aktualizovat, a\u017e se rozhodnete, m\u016f\u017eete aktualizace vypnout.<\/p>\n
Osobn\u011b si mysl\u00edm, \u017ee automatick\u00e9 aktualizace nejsou v\u016fbec \u0161patn\u00e9, i kdy\u017e mi p\u0159ijde v\u017edy \u0159ada email\u016f ze str\u00e1nek, se kter\u00fdmi ji\u017e d\u00e1vno nem\u00e1m nic spole\u010dn\u00e9ho.<\/p>\n
O automatick\u00e9 aktualizaci j\u00e1dra WordPressu v\u011bd\u00ed v\u0161ichni, co s n\u00edm pracuj\u00ed, ale m\u00e1lokdo v\u00ed, \u017ee aktualizace se mohou t\u00fdkat i \u0161ablon a plugin\u016f. Samoz\u0159ejm\u011b, pouze tehdy, pokud jsou sta\u017een\u00e9 z z WordPress.org. Ji\u017e jsem za\u017eil, \u017ee byl web napaden\u00fd p\u0159es zastaralou \u0161ablonu, proto m\u016f\u017ee b\u00fdt aktualizace br\u00e1na i jako bezpe\u010dnostn\u00ed prvek. Nebezpe\u010d\u00ed toho v\u0161ak je, pokud nem\u00e1te na webu \u0161ablonu na m\u00edru, nebo je ta z WordPress.org upraven\u00e1. To se ale d\u00e1 zase \u0159e\u0161it child themes, k \u010demu\u017e v\u00fdvoj sm\u011b\u0159uje.<\/p>\n
Automatickou aktualizaci plugin\u016f a \u0161ablon zapnete p\u0159id\u00e1n\u00edm n\u00e1sleduj\u00edc\u00edho k\u00f3du do functions.php<\/p>\n
\nadd_filter( 'auto_update_plugin', '__return_true' );\nadd_filter( 'auto_update_theme', '__return_true' );\n<\/pre>\nAutomatickou aktualizaci j\u00e1dra WordPressu vypnete p\u0159id\u00e1n\u00edm n\u00e1sleduj\u00edc\u00edho k\u00f3du do wp-config.php<\/p>\n
define( 'WP_AUTO_UPDATE_CORE', false );<\/pre>\nPokud chcete m\u00edt jistotu, \u017ee ani z \u0161ablon, nebo plugin\u016f nep\u016fjde zapnout jejich aktualizaci, p\u0159idejte do wp-config.php<\/p>\n
define( 'AUTOMATIC_UPDATER_DISABLED', true );<\/pre>\nT\u00edm definitivn\u011b vypnete aktualizaci j\u00e1dra, plugin\u016f, i \u0161ablon.<\/p>\n","protected":false},"excerpt":{"rendered":"
Od verze 3.7 se ve WordPressu objevila novinka ve form\u011b automatick\u00fdch aktualizac\u00ed. Pokud chcete m\u00edt nad sv\u00fdm webem absolutn\u00ed kontrolu a aktualizovat, a\u017e se rozhodnete, m\u016f\u017eete aktualizace vypnout.<\/p>\n","protected":false},"author":1,"featured_media":8624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[78],"class_list":["post-1728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-automaticka-aktualizace-wordpress"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1728"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=1728"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8624"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}