WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
private pages no longer private (5 posts)

  1. sdawson26
    Member
    Posted 1 year ago #

    Hello,

    So this is crazy.. I've got a multisite, with domain mapping, with SSL. Can you believe that it all works? I can't.

    The problem I have is that I have a few private pages that should only be viewable if logged in or if admin. Ever since I got off the ground running with domain mapping, I have the ability to view private pages when I am not logged in at all.

    if you echo "wp_get_current_user();", the page will break at that point whether I am logged in or not. If i put if(!is_admin){...redirect...} it will redirect whether I am logged in as admin or not.

    So i have no way of viewing the page privately. It seems to be either all or nothing. please help!

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. sdawson26
    Member
    Posted 1 year ago #

    Let me break it down further just in case that sounded confusing:

    If I am logged in as an admin, an !is_admin() check would return true.

  3. sdawson26
    Member
    Posted 1 year ago #

    What also sucks is that if the post is saved as a draft and taken out of published mode, you can still see the page publicly.

    HOWEVER, if I switch the primary domain back to the subdomain instead of the mapped domain, the problem goes away.

  4. sdawson26
    Member
    Posted 1 year ago #

    I'm going to leave this topic unresolved, but my only true way around this was to build a plugin that runs in the admin section. In the end, this was the more secure and efficient way to do it, anyway.

    Beware of all posts and pages (public, private, draft, trash, in review) showing publicly when using this plugin.

  5. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Anyone who is answering posts here is doing so as a volunteer. A decent turn around on a response is 24 hours or so.

    Beware of all posts and pages (public, private, draft, trash, in review) showing publicly when using this plugin.

    You definitely have something going on with your site as I haven't seen any plugin which allows the public to view posts in review or in the trash. Domain mapping does not change the visibility of posts, pages, etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.