<?xml version="1.0"?><!-- generator="bbPress" -->

<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>WordPress Designpraxis Forum Topic: BackUpWordPress init add_action</title>
<link>http://wpforum.designpraxis.at/</link>
<description>WordPress Designpraxis Forum Topic: BackUpWordPress init add_action</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 15:04:25 +0000</pubDate>

<item>
<title>rol on "BackUpWordPress init add_action"</title>
<link>http://wpforum.designpraxis.at/topic/backupwordpress-init-add_action#post-446</link>
<pubDate>Thu, 21 Feb 2008 19:21:47 +0000</pubDate>
<dc:creator>rol</dc:creator>
<guid isPermaLink="false">446@http://wpforum.designpraxis.at/</guid>
<description>&#60;p&#62;stonacek, you're right, the security check is sufficent if run on the BackUpWordPress administration page. Unfortunately I haven't got the time to work on a new release for the plugin. Have you fixed your version of the code? Could you send me a diff? thx a lot, roland
&#60;/p&#62;</description>
</item>
<item>
<title>stonacek on "BackUpWordPress init add_action"</title>
<link>http://wpforum.designpraxis.at/topic/backupwordpress-init-add_action#post-437</link>
<pubDate>Fri, 15 Feb 2008 23:09:06 +0000</pubDate>
<dc:creator>stonacek</dc:creator>
<guid isPermaLink="false">437@http://wpforum.designpraxis.at/</guid>
<description>&#60;p&#62;I haven't looked through all the backupwordpress code just yet, so this may be unfounded.  But is there any reason add_action('init'... is called outside of the wp-admin pages?  I don't see any reason for things like bkpwp_security_check() to be called every time a non-admin page is loaded.  This means that bkpwp_security_check() is writing the backup/.htaccess file every page load, which is a bit excessive.&#60;/p&#62;
&#60;p&#62;From what I can see (and tested personally), a quick check before calling the add_action('init', like the below (not compatible with IIS), is much more reasonable.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
if(strpos($_SERVER['REQUEST_URI'], '/wp-admin/') !== false) {&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Stonacek
&#60;/p&#62;</description>
</item>

</channel>
</rss>

