Skip to content
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

Multisite and WP Skeleton. What is the expected issues? #25

Open
trsenna opened this issue May 23, 2013 · 0 comments
Open

Multisite and WP Skeleton. What is the expected issues? #25

trsenna opened this issue May 23, 2013 · 0 comments

Comments

@trsenna
Copy link

trsenna commented May 23, 2013

Hi,

when creating a multisite network with a project of mine, based on WP Skeleton, WP alerts me that subfolders based network are not completely supported, or something like that. Anyway, I did this and it's apparently working fine. The unique problem I had until now was that network-admin was not redirecting correctly. But I could fix it with this mu-plugin.

/**
 * Plugin Name: Pitou: Network Fix
 * Description: Try to provide a better experience when working with WP Network.
 */

final class Pitou_Network_Fix
{
    function __construct()
    {
        add_filter('network_admin_url', array(&$this, 'get_network_admin_url'), 10, 2);
    }

    function get_network_admin_url($url, $path)
    {
        return str_replace('wp-admin/network/', 'neferpitou/wp-admin/network/', $url);
    }
}

new Pitou_Network_Fix();

Please, notice that the code neferpitou/wp-admin/network/ is equivalent to wp/wp-admin/network/.

So, what would be the expected issues I could have in the future? I'd like to know what kind of risks existis if I deploy this project in production.

Thanks,
Thiago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant