WordPress.org

Plugin Directory

Changeset 161719


Ignore:
Timestamp:
10/09/09 01:05:57 (5 years ago)
Author:
ikailo
Message:
 
File:
1 edited

Legend:

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

    r161092 r161719  
    1919 Copyright (C) 2009 John Sessford - john@wp-hive.com 
    2020 */ 
     21 
     22 
    2123 
    2224global $wpdb, $table_prefix, $hostname, $pathname, $wphive; 
     
    4143 
    4244// Root-Redirect Triggers 
    43 if ( strpos($orig_pathname, $pathname . '/wp-admin') !== false || 
    44     strpos($orig_pathname, $pathname . '/wp-login.php') !== false ) { 
    45  
     45if (defined('WP_ADMIN') && 
     46    defined('WP_INSTALLING') && 
     47    strpos( $orig_pathname, '/wp-login.php') === false && 
     48    strpos($orig_pathname, $pathname . '/wp-admin') || 
     49    strpos($orig_pathname, $pathname . '/wp-login.php') ) { 
     50     
    4651    wphive_set_cookie('wphive_pathname', $pathname); 
    4752    $redirect = 'http://' . $orig_hostname . substr($orig_pathname, strlen($pathname)); // Strip path for redirect 
Note: See TracChangeset for help on using the changeset viewer.