Ticket #12119: wpmu-blogs.diff
File wpmu-blogs.diff, 2.9 KB (added by , 15 years ago) |
---|
-
wpmu-blogs.php
75 75 $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" ); 76 76 ?> 77 77 <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> 79 79 <form method="post" action="wpmu-edit.php?action=updateblog"> 80 80 <?php wp_nonce_field('editblog'); ?> 81 81 <input type="hidden" name="id" value="<?php echo $id ?>" /> … … 86 86 <table class="form-table"> 87 87 <tr class="form-field form-required"> 88 88 <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> 90 90 </tr> 91 91 <tr class="form-field form-required"> 92 92 <th scope="row"><?php _e('Path') ?></th> 93 93 <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> 95 95 </tr> 96 96 <tr class="form-field"> 97 97 <th scope="row"><?php _e('Registered') ?></th> … … 491 491 492 492 $controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '">' . __("Delete") . '</a>'; 493 493 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>'; 495 495 ?> 496 496 497 497 <?php if (count($controlActions)) : ?>