<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BenV&#039;s notes &#187; wordpress</title>
	<atom:link href="http://notes.benv.junerules.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.benv.junerules.com</link>
	<description>Rants and notes</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:36:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress 3.0 update!</title>
		<link>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:24:39 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=812</guid>
		<description><![CDATA[Since I was in another update mood I decided to take a quick look at my notes. The admin page mentioned something about the new 3.0 version. Obviously I immediately became very excited and ran to the bathroom. After screaming for half an hour I made a backup of the wordpress dir and sql and [...]]]></description>
			<content:encoded><![CDATA[<p>Since I was in another update mood I decided to take a quick look at my notes.<br />
The admin page mentioned something <a href="http://wordpress.org/development/2010/06/thelonious/">about the new 3.0 version</a>.<br />
Obviously I immediately became very excited and ran to the bathroom.<br />
After screaming for half an hour I made a backup of the wordpress dir and sql and wondered if the auto-upgrade button would work.<br />
Always a surprise&#8230;. but it worked! It actually worked!<span id="more-812"></span></p>
<p>Suddenly the admin page looked slightly different (round corners in opera, that kind of rubbish), yet still exactly the same.<br />
Oh well. They have a better updates overview now though. So I also decided to update the theme. Which restored a stupid<br />
&#8220;swear at wordpress&#8221; box that I molested in the previous version. &#8220;Oh yeah, now I remember&#8230;&#8221;. (note that this is simply the theme<br />
that has that stupid box there).</p>
<div id="attachment_816" class="wp-caption alignnone" style="width: 310px"><a href="http://notes.benv.junerules.com/wp-content/uploads/2010/06/wordpress3-pixel-theme.png"><img src="http://notes.benv.junerules.com/wp-content/uploads/2010/06/wordpress3-pixel-theme-300x129.png" alt="WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box" title="WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box" width="300" height="129" class="size-medium wp-image-816" /></a><p class="wp-caption-text">WordPress 3.0 Pixel Theme v2.0.2 with stupid welcome box</p></div>
<h5>&#8230; when trying to insert an image here I found out that the new wordpress actually destroyed the image upload dialog.<br />
Obviously it&#8217;s only broken in the Opera version I&#8217;m using, so it&#8217;s probably them&#8230; but still&#8230; *rage*&#8230;</h5>
<p>In other words, a good time to try out what they call <a href="http://codex.wordpress.org/Child_Themes">Child Themes</a>.<br />
If done correctly this supposedly prevents further updates to the theme from reintroducing this box. Unless they do something<br />
silly of course, like adding a new box in a different template.<br />
Here goes!</p>
<p>First we create a dir for the theme, it can be named whatever you like.<br />
Then we create a <span style="color:#FF00FF">style.css</span> file.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html$ <span style="color: #7a0874; font-weight: bold;">cd</span> wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span><br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> benv-pixel <br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes$ <span style="color: #7a0874; font-weight: bold;">cd</span> benv-pixel<br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">vim</span> style.css</div></div>
<p>The style file can be very empty, basically it imports the parent theme and optionally overrides things:</p>
<div class="codecolorer-container css vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/*<br />
Theme Name: &nbsp; &nbsp; BenV's Pixel Child Theme<br />
Theme URI: &nbsp; &nbsp; &nbsp;http: //notes.benv.junerules.com/<br />
Description: &nbsp; &nbsp;Child theme for the Pixel theme<br />
Author: &nbsp; &nbsp; &nbsp; &nbsp; BenV<br />
Author URI: &nbsp; &nbsp; http://notes.benv.junerules.com/<br />
Template: &nbsp; &nbsp; &nbsp; pixel<br />
Version: &nbsp; &nbsp; &nbsp; &nbsp;1.0.0<br />
*/</span><br />
<br />
<span style="color: #a1a100;">@import url(&quot;../pixel/style.css&quot;);</span></div></div>
<p>Make sure to correctly name the template (case sensitive) that you base the theme on, in our case <span style="color:#00FFFF">pixel</span>.</p>
<p>Well, so far so good, but this doesn&#8217;t actually change anything. What we want to get rid of is a stupid box that apparently is in the<br />
<span style="color:#00FF88">welcome.php</span> file of the pixel theme. In fact, <span style="color:#00FF88">welcome.php</span> pretty much is the entire thing that annoys me.<br />
So let&#8217;s create our own <span style="color:#00FF88">welcome.php</span> file:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// This is BenV's welcome.php file. Yes, it's empty. Good riddance.</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>Easy huh?</p>
<p>Now you can go to the Admin panel -> themes and then you&#8217;ll see your child theme right there.<br />
<div id="attachment_817" class="wp-caption alignnone" style="width: 310px"><a href="http://notes.benv.junerules.com/wp-content/uploads/2010/06/benv-wordpress-theme.png"><img src="http://notes.benv.junerules.com/wp-content/uploads/2010/06/benv-wordpress-theme-300x282.png" alt="BenV&#039;s WordPress Pixel Child Theme" title="BenV&#039;s WordPress Pixel Child Theme" width="300" height="282" class="size-medium wp-image-817" /></a><p class="wp-caption-text">BenV's WordPress Pixel Child Theme</p></div><br />
Activate it (or preview it first to be sure), and we&#8217;re done.</p>
<p>However, things never work as intended, so this fails. *sigh*. Nice try WordPress.<br />
When we look into this matter, we notice that the pixel theme doesn&#8217;t really have a <span style="color:#00FF88">welcome.php</span> template.<br />
What it does have is a <span style="color:#88FF33">sidebar.php</span> template, which includes the <span style="color:#00FF88">welcome.php</span> from its own template path.<br />
In order words: we can&#8217;t override <span style="color:#00FF88">welcome.php</span> (until they fix the Pixel theme), but we have to override the <span style="color:#88FF33">sidebar.php</span> file.</p>
<p>Here goes:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ..<span style="color: #000000; font-weight: bold;">/</span>pixel<span style="color: #000000; font-weight: bold;">/</span>sidebar.php .<br />
benv<span style="color: #000000; font-weight: bold;">@</span>wordpress:~<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>wp-content<span style="color: #000000; font-weight: bold;">/</span>themes<span style="color: #000000; font-weight: bold;">/</span>benv-pixel$ <span style="color: #c20cb9; font-weight: bold;">vim</span> sidebar.php<br />
&nbsp;<span style="color: #666666; font-style: italic;"># Remove lines 6-8, they look like this:</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;li&gt;</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;?php include (TEMPLATEPATH . '/welcome.php'); ?&gt;</span><br />
&nbsp;<span style="color: #666666; font-style: italic;"># &lt;/li&gt;</span><br />
:wq</div></div>
<p>Yay! It works!</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/wordpress-3-0-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress hits 2.9 with another failed auto-upgrade.</title>
		<link>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/</link>
		<comments>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:15:38 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=665</guid>
		<description><![CDATA[Here we go again, wordpress has an update to version 2.9 this time. New features include &#8220;automatic database optimization support&#8221;, which you can enable by putting define('WP_ALLOW_REPAIR', true); in your wp-config.php file. The rest you&#8217;ll run into yourself, it&#8217;s a ton of new stuff and fixes but some cool stuff like a built-in image editor [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go <a href="http://notes.benv.junerules.com/software/another-wordpress-update/">again</a>, wordpress has an <a href="http://wordpress.org/development/2009/12/wordpress-2-9/">update to version 2.9</a> this time.</p>
<p>New features include &#8220;automatic database optimization support&#8221;, which you can enable by putting <code class="codecolorer text vibrant"><span class="text">define('WP_ALLOW_REPAIR', true);</span></code> in your <span style="color:#FF00FF">wp-config.php</span> file.<br />
The rest you&#8217;ll run into yourself, it&#8217;s a ton of new stuff and fixes but some cool stuff like a built-in image editor and easier embedding of your favorite youtube junk.</p>
<p>Needless to say the automatic upgrade failed AGAIN for me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Downloading update from http:<span style="color: #000000; font-weight: bold;">//</span>wordpress.org<span style="color: #000000; font-weight: bold;">/</span>wordpress-<span style="color: #000000;">2.9</span>.zip.<br />
<br />
Download failed.: Operation timed out after <span style="color: #000000;">60</span> seconds with <span style="color: #000000;">1560944</span> bytes received<br />
<br />
Installation Failed</div></div>
<p>Fortunately, my previous patch still works. Get it <a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=wordpress-auto-update-timeout.diff">here</a> if you want.</p>
<p>After patching that single line the automagic upgrade ended with: <span style="color:#FF0000">WordPress upgraded successfully</span>. Jeeeej.<br />
However, they still left the timeout at 60 seconds in the newer version <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># grep wp_remote_get wp-admin/includes/file.php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$response</span> = wp_remote_get<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$url</span>, array<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'timeout'</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000;">60</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;</div></div>
<p>Failers. They deserve a 56k6 modem for their servers so they can find out about these issues themselves <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/wordpress-hits-2-9-with-another-failed-auto-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another wordpress update</title>
		<link>http://notes.benv.junerules.com/all/software/another-wordpress-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/another-wordpress-update/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:23:53 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=504</guid>
		<description><![CDATA[Version 2.8.5 is here! Some important security hardening going on, fixing a trackback DoS attack (or so they claim). Some more details over here. As usualy the automatic update failed for me, so once again the fix for this error: Download failed.: Operation timed out after 60 seconds with 1538482 bytes received Either patch it [...]]]></description>
			<content:encoded><![CDATA[<p>Version 2.8.5 is here! Some important security hardening going on, fixing a trackback DoS attack (or so they claim). Some more details <a href="http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/" title="wordpress 2.8.5 release">over here</a>. As usualy the automatic update failed for me, so once again the fix for this error:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Download failed.: Operation timed out after <span style="color: #000000;">60</span> seconds with <span style="color: #000000;">1538482</span> bytes received</div></div>
<p>Either patch it manually:</p>
<ul>
<li>Edit <span style="color:#FF00FF">wp-admin/includes/file.php</span> and change line <span style="color:#FFFF11">448</span> to a more reasonable default.</li>
<li>The line sould become something like: <code class="codecolorer php vibrant"><span class="php"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></li>
</ul>
<p>Or use this patch:</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- wp-admin/includes/file.php.org &nbsp; &nbsp; &nbsp;2009-10-21 17:03:47.000000000 +0200</span><br />
<span style="color: #888822;">+++ wp-admin/includes/file.php &nbsp;2009-10-21 17:03:06.000000000 +0200</span><br />
<span style="color: #440088;">@@ -445,7 +445,7 @@</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span> ! $handle <span style="">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new WP_Error<span style="">&#40;</span>'http_no_file', __<span style="">&#40;</span>'Could not create Temporary file'<span style="">&#41;</span><span style="">&#41;</span>;<br />
&nbsp;<br />
<span style="color: #991111;">- &nbsp; &nbsp; &nbsp; $response = wp_remote_get<span style="">&#40;</span>$url, array<span style="">&#40;</span>'timeout' =&gt; <span style="">60</span><span style="">&#41;</span><span style="">&#41;</span>;</span><br />
<span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; $response = wp_remote_get<span style="">&#40;</span>$url, array<span style="">&#40;</span>'timeout' =&gt; <span style="">600</span><span style="">&#41;</span><span style="">&#41;</span>;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span> is_wp_error<span style="">&#40;</span>$response<span style="">&#41;</span> <span style="">&#41;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose<span style="">&#40;</span>$handle<span style="">&#41;</span>;</div></div>
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=wordpress-auto-update-timeout.diff" title="Downloaded 166 times">Wordpress auto updater timeout patch</a> - Version  - SHA: 9e89757f4b2e5536dbd9fe85a3befd00ab1c4a51
<p>When I tried adding the above patch as a download (using the download monitor plugin) I got this failure:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">File <span style="color: #7a0874; font-weight: bold;">type</span> does not meet security guidelines. Try another.</div></div>
<p>What the fuck guys, this is a TEXT file. Grepping through the sources I find the <span style="color:#00FFFF">wp-admin/includes/file.php</span> file to be the nazi. Apparently I&#8217;m not allowed (as site admin) to pass this <code class="codecolorer php vibrant"><span class="php">current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'unfiltered_upload'</span> <span style="color: #009900;">&#41;</span></span></code>. Security hardening, yeah&#8230; against idiots perhaps.<br />
I&#8217;m expecting an update of either wordpress or <a href="http://wordpress.org/extend/plugins/download-monitor/" title="Download Monitor plugin">the download monitor plugin</a> soon.<br />
Meanwhile I simply uploaded the file manually and added an existing download. Pfffrt, the hassle.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/another-wordpress-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another wordpress security update?</title>
		<link>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/</link>
		<comments>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 06:45:48 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=202</guid>
		<description><![CDATA[Meh. Yet another security issue&#8230;. &#8220;Prutsers&#8221;. Oh well, at least they fixed it. As for the upgrade, once again I had to manually increase their timeout to more than 60 seconds. Just for reference: Edit wp-admin/includes/file.php with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to [...]]]></description>
			<content:encoded><![CDATA[<p>Meh.<br />
<a href="http://wordpress.org/development/2009/08/2-8-4-security-release/">Yet another security issue&#8230;.</a><br />
&#8220;Prutsers&#8221;. Oh well, at least they fixed it.</p>
<p>As for the upgrade, <a href="http://notes.benv.junerules.com/software/update-day/">once again</a> I had to manually increase their timeout to more than 60 seconds.<br />
Just for reference:<br />
Edit <span style="color: #FF0000">wp-admin/includes/file.php</span> with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to 300:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/another-wordpress-security-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update day!</title>
		<link>http://notes.benv.junerules.com/all/software/update-day/</link>
		<comments>http://notes.benv.junerules.com/all/software/update-day/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:11:15 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Slackbuild.pl]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=124</guid>
		<description><![CDATA[It seems to be update day today&#8230;. I felt like updating my shit today. Somehow I enjoy updates so I do it whenever I see interesting stuff. So glancing through the slackware changelog I noticed a new Apache2 version (2.2.12 with a bunch of security updates). Meh, not my favorite piece of garbage to upgrade, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems to be update day today&#8230;.</p>
<p>I felt like updating my shit today. Somehow I enjoy updates so I do it whenever I see interesting stuff.<br />
So glancing through the slackware changelog I noticed a new <span style="color: #ff0000;">Apache2</span> version (<a href="http://apache.mirror.versatel.nl/httpd/CHANGES_2.2.12">2.2.12 with a bunch of security updates</a>). Meh, not my favorite piece of garbage to upgrade, but local upgrades were easy enough and also the remote (slackware 11, custom builds) ones went without hickups.<span id="more-124"></span></p>
<p>Then there was a new version of <span style="color: #00ccff;">Irssi</span><span style="color: #00ccff;"> </span>- <a title="Irssi - the client of the future" href="http://irssi.org/" target="_self">0.8.14</a>. Fine, updated that too. Good to see it didn&#8217;t break my scripts <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Meanwhile I checked out if the apache upgrade broke my notes, but it didn&#8217;t. While on the notes page I decided to write this little snippet,<br />
and found out that also WordPress had a new release &#8211; <a href="http://wordpress.org/development/2009/08/wordpress-2-8-3-security-release/">2.8.3. More security stuff</a>.<br />
And the <span style="color: #800080;">codecolorer</span> plugin that I use for the code snippets also had an <a title="Codecolorer - wordpress plugin for syntax highlighting code blocks" href="http://wordpress.org/extend/plugins/codecolorer/" target="_self">update</a>.<br />
Updating wordpress was easy enough btw, just go to admin &#8211; tools &#8211; upgrade and hit the upgrade automatically button. I like features like that in a product.<br />
Note that this failed at least two times because of a 60 second timeout on the download. Guess they need to invest in faster servers <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
&#8220;Download failed.: Operation timed out after 60 seconds with 1226456 bytes received&#8221;&#8230;. too bad they don&#8217;t give me other options when that happens.<br />
And while I&#8217;m moaning about their &#8216;automagic upgrade&#8217;, how about some ajax progress indicators etc guys? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
In case you also run into the timeout issue:<br />
Don&#8217;t bother downloading the file yourself and putting it in the /your/wordpress/path/wp-content/ dir. Hitting the button over and over will<br />
only swamp their servers even more and won&#8217;t make it any better either.<br />
I tried increasing the php timeout on the sockets, but that didn&#8217;t seem to help. Pity guys, real shame&#8230; in fact, it angers me. *grumble*morons*grumble*<br />
You might as well go for <a href="http://codex.wordpress.org/Upgrading_WordPress">the manual upgrade</a>.</p>
<p>At some point I got pissed enough to grep and read through the source for half an hour (AAARGH MY EYES) and distill this patch:<br />
Edit <span style="color: #00ccff;"><b>wp-admin/includes/file.php</b></span> with your favorite editor and change line 448 so it has a more reasonable timeout, I put it to 300:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> wp_remote_get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>Now it finally worked <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>While on the update tour I also updated my <a href="http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki">MPD</a> to version 0.15.1, although I&#8217;m running the git<br />
version of course, but that went fine (through slackbuild.pl of course).</p>
<p>Well, that&#8217;s enough updates for today. Time for some coding on slackbuild I think <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/update-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
