Changeset 12978 for trunk/wp-admin/ms-sites.php
- Timestamp:
- 02/05/2010 09:49:19 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-sites.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-sites.php
r12949 r12978 83 83 <div class="wrap"> 84 84 <?php screen_icon(); ?> 85 <h2><?php _e('Edit Site'); ?> - <a href=' http://<?php echo $details->domain . $details->path; ?>'>http://<?php echo $details->domain . $details->path; ?></a></h2>85 <h2><?php _e('Edit Site'); ?> - <a href='<?php echo get_home_url($id); ?>'><?php echo get_home_url($id); ?></a></h2> 86 86 <form method="post" action="ms-edit.php?action=updateblog"> 87 87 <?php wp_nonce_field('editblog'); ?> … … 94 94 <tr class="form-field form-required"> 95 95 <th scope="row"><?php _e('Domain') ?></th> 96 <td>http://<input name="blog[domain]" type="text" id="domain" value="<?php echo $details->domain?>" size="33" /></td>96 <td>http://<input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr($details->domain) ?>" size="33" /></td> 97 97 </tr> 98 98 <tr class="form-field form-required"> 99 99 <th scope="row"><?php _e('Path') ?></th> 100 100 <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr($details->path) ?>" size="40" style='margin-bottom:5px;' /> 101 <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>101 <br /><input type='checkbox' style='width:20px;' name='update_home_url' value='update' <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id($id) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id($id) ) ) echo 'checked="checked"'; ?> /> <?php _e( "Update 'siteurl' and 'home' as well." ); ?></td> 102 102 </tr> 103 103 <tr class="form-field"> … … 447 447 if ( $blog_list ) { 448 448 $status_list = array( 'archived' => array( 'site-archived', __('Archived') ), 'spam' => array( 'site-spammed', __('Spam') ), 'deleted' => array( 'site-deleted', __('Deleted') ) ); 449 $class = ''; 449 450 foreach ( $blog_list as $blog ) { 450 451 $class = ('alternate' == $class) ? '' : 'alternate'; … … 491 492 $actions = array(); 492 493 $actions[] = '<a href="ms-sites.php?action=editblog&id=' . $blog['blog_id'] . '" class="edit">' . __('Edit') . '</a>'; 493 $actions[] = "<a href=' {$protocol}{$blog['domain']}{$blog['path']}wp-admin/' class='edit'>" . __('Backend') . '</a>';494 $actions[] = "<a href='" . get_admin_url($blog['blog_id']) . "' class='edit'>" . __('Backend') . '</a>'; 494 495 495 496 if ( get_blog_status( $blog['blog_id'], "deleted" ) == '1' ) … … 510 511 $actions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to delete the blog %s" ), $blogname ) ) . '">' . __("Delete") . '</a>'; 511 512 512 $actions[] = "<a href=' http://{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>';513 $actions[] = "<a href='" . get_home_url($blog['blog_id']) . "' rel='permalink'>" . __('Visit') . '</a>'; 513 514 ?> 514 515 … … 543 544 if ( count( $blogusers ) > 5 ) { 544 545 $blogusers = array_slice( $blogusers, 0, 5 ); 545 $blogusers_warning = __( 'Only showing first 5 users.' ) . ' <a href="' . $protocol . $blog[ 'domain' ] . $blog[ 'path' ] . 'wp-admin/users.php">' . __( 'More' ) . '</a>';546 $blogusers_warning = __( 'Only showing first 5 users.' ) . ' <a href="' . get_admin_url($blog['blog_id'], 'users.php') . '">' . __( 'More' ) . '</a>'; 546 547 } 547 548 foreach ( $blogusers as $key => $val )
Note: See TracChangeset
for help on using the changeset viewer.