wp-media / wp-media/backwpup

Multiple Backups on WP Multisites

Open
#64 4 comments 1 reaction 1 assignee View on GitHub

@Dinamiko is already working on this.

Since Jan 28, 2019.

need: tests
Dominant language
PHP
Stars
95
Forks
46
PR merge metrics
No merged PRs in 30d

Description

My WP Multisite creates multiple backups since the following change:

https://github.com/inpsyde/backwpup/commit/a4fb0a24f874c23d5b1bdf8b9417eeff4d877d77#diff-29b55d7c830b04ca5f3b553cfcd9f78a

And as far as I can see it: is_main_network() is always true for every site of my multisite. And so the backup cron is executed by every subpage.

This should work:
if ( ! is_main_site() || ( ! is_main_network() && ! is_main_site() ) ) { return; }

Or:

if ( ! is_main_network() ) { return; }

if ( ! is_main_site() ) { return; }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.