{"action":"closed","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson-Backup-Extension/issues/1","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson-Backup-Extension/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson-Backup-Extension/issues/1/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson-Backup-Extension/issues/1/events","html_url":"https://github.com/ThemeFuse/Unyson-Backup-Extension/issues/1","id":51308700,"number":1,"title":"Multisite support","user":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ThemeFuse/Unyson-Backup-Extension/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-12-08T14:40:44Z","updated_at":"2015-11-24T11:56:47Z","closed_at":"2015-11-24T11:56:47Z","body":"On [multisite](http://codex.wordpress.org/Create_A_Network) the idea is that only the network admin can change files, because the files are shared with all network sites. So it's wrong that an admin of a \"sub-site\" is able to change files, thus affecting all network sites. As an example, only network admin can install/remove plugins and themes, other admins can only activate/disable. So, on multisite, the backup must be available/work only for the network administrator.\r\n\r\nHere are some functions you can use:\r\n\r\n* `is_multisite()` check if current WordPress installation is a multisite\r\n* `is_network_admin()` check if currently the user is on the network admin page\r\n\r\n    **Important**: This doesn't mean it has the permission for something, you must check, as always, with the `current_user_can()` function\r\n\r\nIn the [2.1.3](https://github.com/ThemeFuse/Unyson/releases/tag/v2.1.3) update was made some core fixes for multisite, here are some code examples\r\n* [In the Update extension](https://github.com/ThemeFuse/Unyson/blob/bb77c16383b334670c47b0e9226882cbc083a339/framework/extensions/update/class-fw-extension-update.php#L36)\r\n* [In the core](https://github.com/ThemeFuse/Unyson/blob/c85174f05e9f15bf1cc2d0cd4b74844c93c461b5/framework/core/components/extensions/manager/class--fw-extensions-manager.php#L100). Example with [menu for multisite](https://github.com/ThemeFuse/Unyson/blob/c85174f05e9f15bf1cc2d0cd4b74844c93c461b5/framework/core/components/extensions/manager/class--fw-extensions-manager.php#L48)\r\n\r\n"}}