{"id":7559823,"date":"2016-07-10T13:16:30","date_gmt":"2016-07-10T13:16:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cannot-post-xml-cdata\/"},"modified":"2016-09-01T16:27:58","modified_gmt":"2016-09-01T16:27:58","slug":"cannot-post-xml-cdata","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cannot-post-xml-cdata\/","title":{"rendered":"Cannot post XML CDATA"},"content":{"rendered":"<p>I run a blog for developers. Today I had an issue with WordPress redirecting to the homepage whenever I tried to post something. Following advice on other threads, I tried disabling themes, plugins, permalink settings, etc until I narrowed it down to a piece of XML CData which WordPress apparently doesn&#8217;t like (note that I&#8217;m using SyntaxHighlighter Evolved):<\/p>\n<pre><code><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n  &amp;lt;akka&amp;gt;\n    &amp;lt;hocon&amp;gt;\n      &amp;lt;!&#x5B;CDATA&#x5B;\n        akka\n        {\n          loglevel = DEBUG\n\n          actor\n          {\n            debug\n            {\n              receive = on      # log any received message\n              autoreceive = on  # log automatically received messages, e.g. PoisonPill\n              lifecycle = on    # log actor lifecycle changes\n              event-stream = on # log subscription changes for Akka.NET event stream\n              unhandled = on    # log unhandled messages sent to actors\n            }\n          }\n        }\n      ]]&amp;gt;\n    &amp;lt;\/hocon&amp;gt;\n  &amp;lt;\/akka&amp;gt;\n<\/pre>\n<p><\/code><\/p>\n<p>Removing the CDATA section, the post goes through without any problems.<\/p>\n<p>Why is WordPress preventing me from posting this, and is there any workaround to go ahead and post it anyway?<\/p>\n","protected":false},"template":"","class_list":["post-7559823","topic","type-topic","status-publish","hentry","topic-tag-posting","topic-tag-cdata","topic-tag-redirect"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7559823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7559823\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7559823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}