{"id":3075,"date":"2016-06-17T05:57:26","date_gmt":"2016-06-17T05:57:26","guid":{"rendered":"http:\/\/musilda.cz\/?p=3075"},"modified":"2016-06-17T05:57:26","modified_gmt":"2016-06-17T05:57:26","slug":"jak-vratit-zpet-predchozi-verzi-pluginu-po-aktualizaci","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-vratit-zpet-predchozi-verzi-pluginu-po-aktualizaci\/","title":{"rendered":"Jak vr\u00e1tit zp\u011bt p\u0159edchoz\u00ed verzi pluginu po aktualizaci"},"content":{"rendered":"\n

Prim\u00e1rn\u011b se tento \u010dl\u00e1nek bude v\u011bnovat WooCommerce a aktualizaci na verzi 2.6, ale plat\u00ed, pro v\u0161echny pluginy.<\/p>\n\n\n\n

Pokud se dostanete do situace, \u017ee aktualizujete v\u00e1mi pou\u017e\u00edvan\u00fd plugin a n\u011bco p\u0159estane fungovat, tak jedinou, okam\u017eitou pomoc\u00ed, je vr\u00e1tit na web p\u016fvodn\u00ed verzi.<\/p>\n\n\n\n

Bohu\u017eel to nejde ud\u011blat automaticky a u plugin\u016f, jen\u017e nejsou na WordPress.org, budete muset \u0161\u00e1hnout po z\u00e1loze, nebo otravovat developera.<\/p>\n\n\n\n

U plugin\u016f z WordPress. org, m\u00e1te mo\u017enost, d\u00edky SVN, st\u00e1hnout i p\u0159edchoz\u00ed verze plugin\u016f a ud\u011blat tak „downgrade“.<\/p>\n\n\n\n

Na str\u00e1nce pluginu, v z\u00e1lo\u017ece Developers, najdete v\u0161echny p\u0159edchoz\u00ed verze a m\u016f\u017eete si tak st\u00e1hnout, jakou budete pot\u0159ebovat.<\/p>\n\n\n

\n
\"downgrade\"<\/a><\/figure><\/div>\n\n\n

Zm\u011bnu v administraci WordPressu neud\u011bl\u00e1te, budete muset, pomoc\u00ed FTP, smazat aktu\u00e1ln\u00ed verzi pluginu a nahr\u00e1t na web, verzi sta\u017eenou z SVN.<\/p>\n\n\n\n

Tento n\u00e1vod p\u00ed\u0161i, proto\u017ee po aktualizaci WooCommerce na verzi 2.6, kde jsou nov\u00e9 Shipping Zones, doch\u00e1z\u00ed k nekompabilit\u011b s m\u00fdmi pluginy pro dopravu<\/a>. I kdy\u017e jsem doplnil podporu pro Dopravn\u00ed z\u00f3ny, Woocommerce za\u010dala vypisovat chybov\u00e1 hl\u00e1\u0161en\u00ed a za\u010dala ignorovat DPH dopravy. V pokladn\u011b se sice doprava za 100 K\u010d, zobraz\u00ed spr\u00e1vn\u011b 121 K\u010d, ale celkov\u00fd sou\u010det je o 21 K\u010d ni\u017e\u0161\u00ed, ne\u017e by m\u011bl b\u00fdt.<\/p>\n\n\n\n

BONUS – jak vr\u00e1tit zp\u011bt p\u0159edchoz\u00ed verzi \u0161ablony a WordPressu<\/h2>\n\n\n\n

Z hlediska bezpe\u010dnosti bych p\u0159echod na star\u0161\u00ed verzi WordPressu nedoporu\u010doval, ale pokud nap\u0159\u00edklad testujeme funk\u010dnost webu, m\u016f\u017eeme d\u00edky p\u0159echodu na ni\u017e\u0161\u00ed verzi snadno odhalit, jestli byl probl\u00e9m zp\u016fsoben p\u0159echodem na nov\u011bj\u0161\u00ed verzi WordPressu\/\u0161ablony.<\/p>\n\n\n\n

P\u0159echod mezi jednotliv\u00fdmi verzemi n\u00e1m umo\u017en\u00ed plugin WP Rollback<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Prim\u00e1rn\u011b se tento \u010dl\u00e1nek bude v\u011bnovat WooCommerce a aktualizaci na verzi 2.6, ale plat\u00ed, pro v\u0161echny pluginy. Pokud se dostanete do situace, \u017ee aktualizujete v\u00e1mi pou\u017e\u00edvan\u00fd plugin a n\u011bco p\u0159estane fungovat, tak jedinou, okam\u017eitou pomoc\u00ed, je vr\u00e1tit na web p\u016fvodn\u00ed verzi. Bohu\u017eel to nejde ud\u011blat automaticky a u plugin\u016f, jen\u017e nejsou na WordPress.org, budete muset<\/p>\n","protected":false},"author":1,"featured_media":8598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[12,30],"tags":[],"class_list":["post-3075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-navody","category-wordpress"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3075"}],"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=3075"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3075\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8598"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=3075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=3075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=3075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}