The MU forums have moved to WordPress.org

patch for import (5 posts)

  1. TomK32
    Member
    Posted 18 years ago #

    all hail the lord of bug-hunting:

    replace this in wp-includes/pluggable-functions.php

    function auth_redirect() {
    // Checks if a user is logged in, if not redirects them to the login page
    if ( (!empty($_COOKIE[USER_COOKIE]) &&
    !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) ||
    (empty($_COOKIE[USER_COOKIE])) ) {
    nocache_headers();

    header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
    exit();
    }
    }

    with


    function auth_redirect() {
    // Checks if a user is logged in, if not redirects them to the login page
    if ( (!empty($_COOKIE[USER_COOKIE]) &&
    !wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) ) {
    nocache_headers();

    header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
    exit();
    }
    }

    now, can anyone tell me why this damn menu isn't showing up?

  2. itdamager
    Member
    Posted 18 years ago #

    Tom, while your patch does indeed allow the imports page to display, it also allows anyone without a cookie set to view wp-admin/index.php (i.e. the dashboard) for ANY of your blogs without signing in because they do not get redirected to wp-login.php.

    Its so odd that all the admin files work fine with exception of import.php...

  3. itdamager
    Member
    Posted 18 years ago #

    The problem was in wp-settings.php line 292. Here is the fix.

  4. sskhalsa
    Member
    Posted 18 years ago #

    does blogger Impots work? I can login but i just get a page that says this :

    Selecting a Blog

  5. itdamager
    Member
    Posted 18 years ago #

    It was never available for so long I don't know if anyone has actually tested/tried it in wpmu.

About this Topic

  • Started 18 years ago by TomK32
  • Latest reply from itdamager