Make WordPress Core


Ignore:
Timestamp:
01/08/2010 09:25:01 PM (17 years ago)
Author:
wpmuguru
Message:

Add is_subdomain_install() to ms code - Fixes #11796

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r12646 r12674  
    402402                <?php
    403403                // define the columns to display, the syntax is 'internal name' => 'display name'
    404                 $blogname_columns = ( constant( "VHOST" ) == 'yes' ) ? __('Domain') : __('Path');
     404                $blogname_columns = ( is_subdomain_install() ) ? __('Domain') : __('Path');
    405405                $posts_columns = array(
    406406                        'id'           => __('ID'),
     
    458458                                        echo "<tr $bgcolour class='$class'>";
    459459
    460                                         $blogname = ( constant( "VHOST" ) == 'yes' ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path'];
     460                                        $blogname = ( is_subdomain_install() ) ? str_replace('.'.$current_site->domain, '', $blog['domain']) : $blog['path'];
    461461                                        foreach( $posts_columns as $column_name=>$column_display_name ) {
    462462                                                switch($column_name) {
     
    587587                                                <th style="text-align:center;" scope='row'><?php _e('Blog Address') ?></th>
    588588                                                <td>
    589                                                 <?php if ( constant( "VHOST" ) == 'yes' ) { ?>
     589                                                <?php if ( is_subdomain_install() ) { ?>
    590590                                                        <input name="blog[domain]" type="text" title="<?php _e('Domain') ?>"/>.<?php echo $current_site->domain;?>
    591591                                                <?php } else {
Note: See TracChangeset for help on using the changeset viewer.