Changeset 1150

Show
Ignore:
Timestamp:
11/16/07 10:48:07 (1 year ago)
Author:
donncha
Message:

Backing out 1144

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/menu.php

    r1144 r1150  
    55// The minimum level the user needs to access the item: between 0 and 10 
    66// The URL of the item's file 
    7  
    8 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 
    9  
    107$menu[0] = array(__('Dashboard'), 'read', 'index.php'); 
    118 
     
    164161                        if ( empty($blogs) || $blogs == false ) { // If user haven't any blog 
    165162                                update_usermeta( $user_ID, 'wp_1_capabilities', array('subscriber' => true)); // Add subscriber permission for first blog. 
    166                                 wp_redirect( $schema . $current_site->domain . $current_site->path. 'wp-admin/' ); 
     163                                wp_redirect( 'http://' . $current_site->domain . $current_site->path. 'wp-admin/' ); 
    167164                                exit(); 
    168165                        } 
     
    170167                        foreach ( (array) $blogs as $blog ) { 
    171168                                if ( $blog->userblog_id == $newblog->blog_id ) { 
    172                                         wp_redirect( $schema . $newblog->domain . $newblog->path . 'wp-admin/' ); 
     169                                        wp_redirect( 'http://' . $newblog->domain . $newblog->path . 'wp-admin/' ); 
    173170                                        exit(); 
    174171                                } 
     
    176173                         
    177174                        $blog = $blogs[0]; // Take the first blog... 
    178                         wp_redirect( $schema . $blog->domain . $blog->path. 'wp-admin/' ); 
     175                        wp_redirect( 'http://' . $blog->domain . $blog->path. 'wp-admin/' ); 
    179176                        exit(); 
    180177                } 
  • trunk/wp-admin/wpmu-blogs.php

    r1144 r1150  
    519519                                                        ?> 
    520520                                                                <td valign="top"> 
    521                                                                         <?php echo "<a href='". $schema . $blog['domain'] . $blog['path'] . "wp-admin/' class='edit'>" . __('Backend') . "</a>"; ?> 
     521                                                                        <?php echo "<a href='http://" . $blog['domain'] . $blog['path'] . "wp-admin/' class='edit'>" . __('Backend') . "</a>"; ?> 
    522522                                                                </td> 
    523523                                                        <?php 
  • trunk/wp-login.php

    r1144 r1150  
    1212header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 
    1313 
    14 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 
    1514if ( defined('RELOCATE') ) { // Move flag is set 
    1615        if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) 
    1716                $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); 
    1817 
     18        $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 
    1919        if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) 
    2020                update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) ); 
     
    271271?> 
    272272 
    273 <form name="loginform" id="loginform" action="<?php echo $schema . $current_blog->domain . $current_blog->path ?>wp-login.php" method="post"> 
     273<form name="loginform" id="loginform" action="http://<?php echo $current_blog->domain . $current_blog->path ?>wp-login.php" method="post"> 
    274274<?php if ( !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 
    275275        <p>