Make WordPress Core

Ticket #12119: wpmu-blogs.diff

File wpmu-blogs.diff, 2.9 KB (added by stezz, 15 years ago)

wpmu-blogs patch

  • wpmu-blogs.php

     
    7575                $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" );
    7676                ?>
    7777                <div class="wrap">
    78                 <h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2>
     78                <h2><?php _e('Edit Blog'); ?> - <a href='<?php echo ${protocol} . $details['domain'].$details['path']; ?>'><?php echo $protocol . $details['domain'].$details['path']; ?></a></h2>
    7979                <form method="post" action="wpmu-edit.php?action=updateblog">
    8080                        <?php wp_nonce_field('editblog'); ?>
    8181                        <input type="hidden" name="id" value="<?php echo $id ?>" />
     
    8686                                <table class="form-table">
    8787                                                        <tr class="form-field form-required">
    8888                                                                <th scope="row"><?php _e('Domain') ?></th>
    89                                                                 <td>http://<input name="blog[domain]" type="text" id="domain" value="<?php echo $details['domain'] ?>" size="33" /></td>
     89                                                                <td><?php echo $protocol ?><input name="blog[domain]" type="text" id="domain" value="<?php echo $details['domain'] ?>" size="33" /></td>
    9090                                                        </tr>
    9191                                                        <tr class="form-field form-required">
    9292                                                                <th scope="row"><?php _e('Path') ?></th>
    9393                                                                <td><input name="blog[path]" type="text" id="path" value="<?php echo $details['path'] ?>" size="40" style='margin-bottom:5px;' />
    94                                                                 <br /><input type='checkbox' style='width:20px;' name='update_home_url' value='update' <?php if( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) ) echo 'checked="checked"'; ?> /> <?php _e( "Update 'siteurl' and 'home' as well." ); ?></td>
     94                                                                <br /><input type='checkbox' style='width:20px;' name='update_home_url' value='update' <?php if( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', '${protocol}' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', '${protocol}' . $details['domain'] . $details['path']) ) echo 'checked="checked"'; ?> /> <?php _e( "Update 'siteurl' and 'home' as well." ); ?></td>
    9595                                                        </tr>
    9696                                                        <tr class="form-field">
    9797                                                                <th scope="row"><?php _e('Registered') ?></th>
     
    491491                                                                       
    492492                                                                        $controlActions[]       = '<a class="delete" href="wpmu-edit.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] . '">' . __("Delete") . '</a>';
    493493                                                                       
    494                                                                         $controlActions[]       = "<a href='http://{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>';
     494                                                                        $controlActions[]       = "<a href='${protocol}{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>';
    495495                                                                        ?>
    496496                                                                       
    497497                                                                        <?php if (count($controlActions)) : ?>