-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 65: Enable Stream on multisite / network installs #401
Conversation
- Added check for is_multisite() to db $prefix definition to use base_prefix - Updated install $sql to include blog_id column - Added update function to run install() and alter the column order - Added site_id and blog_id values to query defaults - Run install check method on plugins_loaded. plugin_activation_hook doesn't run when updating
- Added blog_id and site_id to fields array - Added blog_id and site_id values to $recordarr - Removed debugging statement from query
- Add stream page to network admin screen if if plugin is network activated - Add WP_STREAM_PLUGIN const to use for checking if plugin is network activated
- Replaced all occurrences of admin_url() with network_admin_url() if is_network_admin() returns true - Updated query args for blog_id filter
- Added all actions to be tracked - Created empty callback function for each action
…fore adding connector items
- Added check for is_network_admin before defaulting the blog_id logged as 1 - Added function to the list table to generate a blog object for actions done in network admin
- Will allow extensions and future features to set blog_id without relying on get_current_blog_id() or is_network_admin()
Conflicts: stream.php
- Added settings API wrapper for saving network wide settings - Added filter to get_fields method to allow settings to be extended - Added function to filter stream get settings to load correct values on network admin settings page
- Add select field to network options screen to choose site to change settings for - Removed redundant code that called admin_notices from network admin screen - Added public static variable $disable_site_admin, gets set to true when network option checked to dis allow access to individual site admin screens - Added html output for select in settings render method
Conflicts: includes/admin.php includes/db-actions.php includes/install.php includes/list-table.php includes/settings.php
Conflicts: includes/admin.php includes/settings.php
These are the tests I've run on this branch: http://pastebin.com/3LXyFqDP Please feel free to suggest any additional testing that may be required. Waiting for a reply at #396 (comment) before having a crack at that last checkbox. |
@lukecarbis It'd be extra cool if those tests were carried out in phpunit format, specially for such significant feature.. not sure if there is enough time for it thought. |
@lukecarbis I decided to add Stream to the Network admin bar. Done in 4be02d2 |
Conflicts: includes/db.php
The Network Admin has the id of zero. We should be able to ask for results from this id.
Conflicts: includes/db-updates.php includes/install.php
If Stream is running on a single site install that switches to multisite later, this will ensure records remain in the main site's Stream
Conflicts: includes/admin.php
Conflicts: includes/admin.php includes/db-updates.php
Issue 65: Enable Stream on multisite / network installs
/five @c3mdigital @powelski @lukecarbis |
See #154 for additional discussion. Resolves #65
type=stream
) for all sites