{"id":194,"date":"2013-12-09T21:41:16","date_gmt":"2013-12-09T21:41:16","guid":{"rendered":"https:\/\/ahorseforonebin.co.uk\/?p=194"},"modified":"2013-12-09T23:23:58","modified_gmt":"2013-12-09T23:23:58","slug":"fed-right-up","status":"publish","type":"post","link":"https:\/\/ahorseforonebin.co.uk\/?p=194","title":{"rendered":"fed right up (feeds full of feed)"},"content":{"rendered":"<p>What did you do lunchtime today?<\/p>\n<p>I converted a spreadsheet from a 24.8Mb monstrosity, to a 72Kb pussycat.<\/p>\n<p>And I debugged the entire WordPress .php application, and the Mantra theme.<\/p>\n<p>I started out debugging just the Mantra theme (let&#8217;s not talk about the spreadsheet, that&#8217;s a work thing).<\/p>\n<p>But when I&#8217;d finished I kept thinking &#8216;Is that it? Really? That&#8217;s it? There isn&#8217;t more?&#8217;<\/p>\n<p>So I began working my way through the WordPress .php stack.<\/p>\n<p>Actually, I found hundreds of .php files with blank lines outside the begin\/end .php markers.<\/p>\n<p>(blank lines outside the\u00a0&lt;?php &#8211;\u00a0?&gt; switches are usually the causes of feed failures)<\/p>\n<p>I could have been clever.<\/p>\n<p>Or lazy.<\/p>\n<p>Same thing, really.<\/p>\n<p>I could have opened the feed-related files in the includes folder and put this code in:<\/p>\n<p><strong>$out = ob_get_contents();<br \/>\n$out = str_replace(array(&#8220;\\n&#8221;, &#8220;\\r&#8221;, &#8220;\\t&#8221;, &#8221;\u00a0&#8220;), &#8220;&#8221;, $input);<br \/>\nob_end_clean();<\/strong><\/p>\n<p>But I didn&#8217;t want to do that, because it wouldn&#8217;t have answered the unasked question.<\/p>\n<p>Coding my way out of the issue wouldn&#8217;t have actually told me how many instances of the issue there were.<\/p>\n<p>And now I know.<\/p>\n<p>Because I fixed them.<\/p>\n<p>Fixed them all.<\/p>\n<p>By hand.<\/p>\n<p>Because I am a geek.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What did you do lunchtime today? I converted a spreadsheet from a 24.8Mb monstrosity, to a 72Kb pussycat. And I debugged the entire WordPress .php application, and the Mantra theme. I started out debugging just the Mantra theme (let&#8217;s not talk about the spreadsheet, that&#8217;s a work thing). But when \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/ahorseforonebin.co.uk\/?p=194\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-admin"],"_links":{"self":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":3,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}