| 1 | Index: wpmu-blogs.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wpmu-blogs.php (revision 2063) |
|---|
| 4 | +++ wpmu-blogs.php (working copy) |
|---|
| 5 | @@ -75,7 +75,7 @@ |
|---|
| 6 | $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" ); |
|---|
| 7 | ?> |
|---|
| 8 | <div class="wrap"> |
|---|
| 9 | - <h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2> |
|---|
| 10 | + <h2><?php _e('Edit Blog'); ?> - <a href='<?php echo ${protocol} . $details['domain'].$details['path']; ?>'><?php echo $protocol . $details['domain'].$details['path']; ?></a></h2> |
|---|
| 11 | <form method="post" action="wpmu-edit.php?action=updateblog"> |
|---|
| 12 | <?php wp_nonce_field('editblog'); ?> |
|---|
| 13 | <input type="hidden" name="id" value="<?php echo $id ?>" /> |
|---|
| 14 | @@ -86,12 +86,12 @@ |
|---|
| 15 | <table class="form-table"> |
|---|
| 16 | <tr class="form-field form-required"> |
|---|
| 17 | <th scope="row"><?php _e('Domain') ?></th> |
|---|
| 18 | - <td>http://<input name="blog[domain]" type="text" id="domain" value="<?php echo $details['domain'] ?>" size="33" /></td> |
|---|
| 19 | + <td><?php echo $protocol ?><input name="blog[domain]" type="text" id="domain" value="<?php echo $details['domain'] ?>" size="33" /></td> |
|---|
| 20 | </tr> |
|---|
| 21 | <tr class="form-field form-required"> |
|---|
| 22 | <th scope="row"><?php _e('Path') ?></th> |
|---|
| 23 | <td><input name="blog[path]" type="text" id="path" value="<?php echo $details['path'] ?>" size="40" style='margin-bottom:5px;' /> |
|---|
| 24 | - <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> |
|---|
| 25 | + <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> |
|---|
| 26 | </tr> |
|---|
| 27 | <tr class="form-field"> |
|---|
| 28 | <th scope="row"><?php _e('Registered') ?></th> |
|---|
| 29 | @@ -491,7 +491,7 @@ |
|---|
| 30 | |
|---|
| 31 | $controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '">' . __("Delete") . '</a>'; |
|---|
| 32 | |
|---|
| 33 | - $controlActions[] = "<a href='http://{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>'; |
|---|
| 34 | + $controlActions[] = "<a href='${protocol}{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>'; |
|---|
| 35 | ?> |
|---|
| 36 | |
|---|
| 37 | <?php if (count($controlActions)) : ?> |
|---|