WordPress.org

Support

Support » Plugins and Hacks » private pages no longer private

private pages no longer private

  • sdawson26
    Member

    @sdawson26

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • sdawson26
    Member

    @sdawson26

    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.

    sdawson26
    Member

    @sdawson26

    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.

    sdawson26
    Member

    @sdawson26

    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.

    Plugin Author Ron Rennick
    MultiSite Guru

    @wpmuguru

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘private pages no longer private’ is closed to new replies.