{"id":5893,"date":"2018-12-09T15:43:44","date_gmt":"2018-12-09T13:43:44","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5893"},"modified":"2018-12-09T15:43:44","modified_gmt":"2018-12-09T13:43:44","slug":"the-issue-here-if-any-is-apparently-just-one-of-confusion","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/12\/09\/the-issue-here-if-any-is-apparently-just-one-of-confusion\/","title":{"rendered":"The issue here, if any, is apparently just one of confusion"},"content":{"rendered":"<p>You can reproduce this even with Twenty Nineteen, by adding\u00a0<code>&lt;?php $blocks = gutenberg_parse_blocks( $post-&gt;post_content ); ?&gt;<\/code>\u00a0to header.php.<\/p>\n<p>Replacing\u00a0<code>gutenberg_parse_blocks()<\/code> calls with\u00a0<code>parse_blocks()<\/code>\u00a0seems to work around the issue (for me at least), and the issue here, if any, is apparently just one of confusion:\u00a0<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/12653\">renaming the function broke backwards compatibility<\/a>, but since\u00a0<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/blob\/2a66db0fc99a9fb1ba99f61e59e6a0b2a4a5f9ef\/lib\/blocks.php#L60\"><code>gutenberg_parse_blocks()<\/code>\u00a0is still defined<\/a>, instead of a &#8221;Call to undefined function&#8221; you get this attempt to redefine\u00a0<code>WP_Block_Parser<\/code>\u00a0(<a href=\"https:\/\/github.com\/WordPress\/gutenberg\/blob\/2a66db0fc99a9fb1ba99f61e59e6a0b2a4a5f9ef\/lib\/blocks.php#L71\">via inclusion of parser.php<\/a>), resulting in the &#8221;name is already in use&#8221;.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can reproduce this even with Twenty Nineteen. Replacing gutenberg_parse_blocks() with parse_blocks() seems to work around the issue&#8221;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[2965],"class_list":["post-5893","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-wordpress","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5893"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5893\/revisions"}],"predecessor-version":[{"id":5894,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5893\/revisions\/5894"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}