WordPress.org

Plugin Directory

Changeset 161724


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

Legend:

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

    r161723 r161724  
    1919 Copyright (C) 2009 John Sessford - john@wp-hive.com 
    2020 */ 
    21  
    22  
    2321 
    2422global $wpdb, $table_prefix, $hostname, $pathname, $wphive; 
     
    4341 
    4442// Root-Redirect Triggers 
    45 if (!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      
     43if ( strpos($orig_pathname, $pathname . '/wp-admin') !== false || 
     44    strpos($orig_pathname, $pathname . '/wp-login.php') !== false ) { 
     45 
    5146    wphive_set_cookie('wphive_pathname', $pathname); 
    5247    $redirect = 'http://' . $orig_hostname . substr($orig_pathname, strlen($pathname)); // Strip path for redirect 
Note: See TracChangeset for help on using the changeset viewer.