WordPress.org

Plugin Directory

Changeset 161728


Ignore:
Timestamp:
10/09/09 02:28:39 (5 years ago)
Author:
ikailo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-hive/tags/0.5/do-prefix.php

    r161724 r161728  
    4141 
    4242// Root-Redirect Triggers 
    43 if ( strpos($orig_pathname, $pathname . '/wp-admin') !== false || 
    44     strpos($orig_pathname, $pathname . '/wp-login.php') !== false ) { 
     43if( !defined('WP_ADMIN') && 
     44    !defined('WP_INSTALLING') && 
     45    strpos( $orig_pathname, '/wp-login.php') === false ) { 
     46    if ( strpos($orig_pathname, $pathname . '/wp-admin') !== false || 
     47        strpos($orig_pathname, $pathname . '/wp-login.php') !== false ) { 
    4548 
    46     wphive_set_cookie('wphive_pathname', $pathname); 
    47     $redirect = 'http://' . $orig_hostname . substr($orig_pathname, strlen($pathname)); // Strip path for redirect 
    48     wphive_redirect($redirect); 
    49     exit (0); 
     49        wphive_set_cookie('wphive_pathname', $pathname); 
     50        $redirect = 'http://' . $orig_hostname . substr($orig_pathname, strlen($pathname)); // Strip path for redirect 
     51        wphive_redirect($redirect); 
     52        exit (0); 
     53    } 
    5054} 
    5155 
Note: See TracChangeset for help on using the changeset viewer.