WordPress Designpraxis Forum » BackUpWordPress Issues

BackUpWordPress init add_action

(2 posts)
  • Started 2 years ago by stonacek
  • Latest reply from rol
  • This topic is not resolved

  1. stonacek
    Member

    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.

    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.

    if(strpos($_SERVER['REQUEST_URI'], '/wp-admin/') !== false) {

    Cheers,

    Stonacek

    Posted 2 years ago #
  2. 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

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.