<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Patching WordPress, WormLess</title>
	<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/</link>
	<description>Giorgio Maone's answers to the Web, the Universe, and Everything</description>
	<pubDate>Thu, 09 Sep 2010 15:41:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-165</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Mon, 13 Aug 2007 05:29:06 +0000</pubDate>
		<guid>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-165</guid>
		<description>@&lt;b&gt;Jammer&lt;/b&gt;:
I agree with you, but these patches are extracted more or less verbatim from the worm.
At any rate, they're superseded by &lt;a href="http://trac.wordpress.org/changeset?new=branches%2F2.2%405849&#038;old=branches%2F2.2%405725" target="_blank" rel="external nofollow" rel="nofollow"&gt;the official fixes&lt;/a&gt; released with WP 2.2.2 which, incidentally, did prefer your typecast technique :)</description>
		<content:encoded><![CDATA[<p>@<b>Jammer</b>:<br />
I agree with you, but these patches are extracted more or less verbatim from the worm.<br />
At any rate, they&#8217;re superseded by <a href="http://trac.wordpress.org/changeset?new=branches%2F2.2%405849&#038;old=branches%2F2.2%405725" target="_blank" rel="external nofollow" rel="nofollow">the official fixes</a> released with WP 2.2.2 which, incidentally, did prefer your typecast technique :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jammer</title>
		<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-164</link>
		<dc:creator>Jammer</dc:creator>
		<pubDate>Mon, 13 Aug 2007 05:21:41 +0000</pubDate>
		<guid>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-164</guid>
		<description>preg_replace is rather proces costly just do a typecast to INTeger
$cat_id = (INT) $_POST['cat_id'];
(same as the post_id is parsed)</description>
		<content:encoded><![CDATA[<p>preg_replace is rather proces costly just do a typecast to INTeger<br />
$cat_id = (INT) $_POST[&#8217;cat_id&#8217;];<br />
(same as the post_id is parsed)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: .mario</title>
		<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-6</link>
		<dc:creator>.mario</dc:creator>
		<pubDate>Thu, 02 Aug 2007 14:01:19 +0000</pubDate>
		<guid>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-6</guid>
		<description>cool, thanks!</description>
		<content:encoded><![CDATA[<p>cool, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio</title>
		<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-5</link>
		<dc:creator>Giorgio</dc:creator>
		<pubDate>Thu, 02 Aug 2007 11:53:15 +0000</pubDate>
		<guid>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-5</guid>
		<description>.mario, thank you very much for reporting the broken link!
I'm such a WordPress n00b, and I didn't know that attachments inherit publishing status of their parent post (that's fine), but also that's quite easy to create orphaned attachment by error, like in this case.
Being logged in as the author the link worked perfectly, while it was missing for everyone else.
To repair it, I manually set the &lt;code&gt;parent_post&lt;/code&gt; field of the attachment record.
Maybe there's an UI way to bind an orphaned attachment to a certain already published post, and I'm grateful for any enlightenment in my perilous blogging journey.</description>
		<content:encoded><![CDATA[<p>.mario, thank you very much for reporting the broken link!<br />
I&#8217;m such a WordPress n00b, and I didn&#8217;t know that attachments inherit publishing status of their parent post (that&#8217;s fine), but also that&#8217;s quite easy to create orphaned attachment by error, like in this case.<br />
Being logged in as the author the link worked perfectly, while it was missing for everyone else.<br />
To repair it, I manually set the
<div class="codesnip-container" >parent_post</div>
<p> field of the attachment record.<br />
Maybe there&#8217;s an UI way to bind an orphaned attachment to a certain already published post, and I&#8217;m grateful for any enlightenment in my perilous blogging journey.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: .mario</title>
		<link>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-4</link>
		<dc:creator>.mario</dc:creator>
		<pubDate>Thu, 02 Aug 2007 10:42:39 +0000</pubDate>
		<guid>http://hackademix.net/2007/08/02/patching-wordpress-wormless/#comment-4</guid>
		<description>Hi!

Thanks for the code. I planed to check that out this weekend and that just saved lots of time. 
Btw - the source code link seems broken...

Greetings,
.mario</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Thanks for the code. I planed to check that out this weekend and that just saved lots of time.<br />
Btw - the source code link seems broken&#8230;</p>
<p>Greetings,<br />
.mario</p>
]]></content:encoded>
	</item>
</channel>
</rss>
