{"id":3079,"date":"2016-06-17T14:16:56","date_gmt":"2016-06-17T14:16:56","guid":{"rendered":"http:\/\/musilda.cz\/?p=3079"},"modified":"2016-06-17T14:16:56","modified_gmt":"2016-06-17T14:16:56","slug":"wordpress-4-5-uncaught-error-syntax-error-unrecognized-expression-ahref","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/wordpress-4-5-uncaught-error-syntax-error-unrecognized-expression-ahref\/","title":{"rendered":"WordPress 4.5 – Uncaught Error: Syntax error, unrecognized expression: a[href*=#"},"content":{"rendered":"

Jeden z men\u0161\u00edch snippet\u016f, kter\u00e9 bych zase slo\u017eit\u011b hledal, tak si jej ulo\u017e\u00edm na blog. Jedn\u00e1 se o probl\u00e9m s aktualizac\u00ed WordPressu na verzi 4.5 a vy\u0161\u0161\u00ed.<\/p>\n

V t\u00e9to verzi do\u0161lo k aktualizaci jQuery knihovny a \u0159ada plugin\u016f, nebo \u0161ablon s t\u00edm m\u00e1 probl\u00e9m.<\/p>\n

Pokud nem\u00e1te k dispozici aktualizaci, m\u016f\u017eete pou\u017e\u00edt tento fujky snippet, kter\u00fd v\u00e1m nahrad\u00ed aktu\u00e1ln\u00ed jQuery star\u0161\u00ed verz\u00ed:<\/p>\n


\nadd_action( 'wp_enqueue_scripts', 'load_old_jquery_fix', 100 );
\nfunction load_old_jquery_fix() {
\n if ( ! is_admin() ) {
\n wp_deregister_script( 'jquery' );
\n wp_register_script( 'jquery', ( \"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.3\/jquery.min.js\" ), false, '1.11.3' );
\n wp_enqueue_script( 'jquery' );
\n }
\n}<\/code><\/p>\n

Berte to jako do\u010dasn\u00e9 \u0159e\u0161en\u00ed, jakmile budete m\u00edt aktualizaci \u0161ablony, toto odstra\u0148te.
\nZdroj: Nalezeno v diskuzi na WordPress.org<\/p>\n","protected":false},"excerpt":{"rendered":"

Jeden z men\u0161\u00edch snippet\u016f, kter\u00e9 bych zase slo\u017eit\u011b hledal, tak si jej ulo\u017e\u00edm na blog. Jedn\u00e1 se o probl\u00e9m s aktualizac\u00ed WordPressu na verzi 4.5 a vy\u0161\u0161\u00ed. V t\u00e9to verzi do\u0161lo k aktualizaci jQuery knihovny a \u0159ada plugin\u016f, nebo \u0161ablon s t\u00edm m\u00e1 probl\u00e9m. Pokud nem\u00e1te k dispozici aktualizaci, m\u016f\u017eete pou\u017e\u00edt tento fujky snippet, kter\u00fd<\/p>\n","protected":false},"author":1,"featured_media":2635,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[355],"class_list":["post-3079","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety","tag-snippet"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3079"}],"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=3079"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/3079\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/2635"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}