Changeset 14374 for trunk/wp-admin/ms-users.php
- Timestamp:
- 05/03/2010 06:16:22 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-users.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-users.php
r14347 r14374 150 150 151 151 <div class="view-switch"> 152 <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="<?php echo includes_url( 'images/blank.gif'); ?>" width="20" height="20" title="<?php _e( 'List View' ) ?>" alt="<?php _e( 'List View' ) ?>" /></a>153 <a href="<?php echo esc_url( add_query_arg( 'mode', 'excerpt', $_SERVER['REQUEST_URI'] ) ) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="<?php echo includes_url( 'images/blank.gif'); ?>" width="20" height="20" title="<?php _e( 'Excerpt View' ) ?>" alt="<?php _e( 'Excerpt View' ) ?>" /></a>152 <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" width="20" height="20" title="<?php _e( 'List View' ) ?>" alt="<?php _e( 'List View' ) ?>" /></a> 153 <a href="<?php echo esc_url( add_query_arg( 'mode', 'excerpt', $_SERVER['REQUEST_URI'] ) ) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" width="20" height="20" title="<?php _e( 'Excerpt View' ) ?>" alt="<?php _e( 'Excerpt View' ) ?>" /></a> 154 154 </div> 155 155 </div> … … 231 231 ?> 232 232 <td class="username column-username"> 233 <?php echo $avatar; ?><strong><a href="<?php echo admin_url( $edit_link); ?>" class="edit"><?php echo stripslashes( $user['user_login'] ); ?></a><?php233 <?php echo $avatar; ?><strong><a href="<?php echo esc_url( admin_url( $edit_link ) ); ?>" class="edit"><?php echo stripslashes( $user['user_login'] ); ?></a><?php 234 234 if ( in_array( $user['user_login'], $super_admins ) ) 235 235 echo ' - ' . __( 'Super admin' ); … … 237 237 <br/> 238 238 <div class="row-actions"> 239 <span class="edit"><a href="<?php echo admin_url( $edit_link); ?>"><?php _e( 'Edit' ); ?></a></span>239 <span class="edit"><a href="<?php echo esc_url( admin_url( $edit_link ) ); ?>"><?php _e( 'Edit' ); ?></a></span> 240 240 <?php if ( ! in_array( $user['user_login'], $super_admins ) ) { ?> 241 | <span class="delete"><a href="<?php echo $delete = admin_url( add_query_arg( '_wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'ms-edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user['ID']) ); ?>" class="delete"><?php _e( 'Delete' ); ?></a></span>241 | <span class="delete"><a href="<?php echo $delete = esc_url( admin_url( add_query_arg( '_wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'ms-edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user['ID'] ) ) ); ?>" class="delete"><?php _e( 'Delete' ); ?></a></span> 242 242 <?php } ?> 243 243 </div> … … 274 274 foreach ( (array) $blogs as $key => $val ) { 275 275 $path = ( $val->path == '/' ) ? '' : $val->path; 276 echo '<a href="'. admin_url( 'ms-sites.php?action=editblog&id=' . $val->userblog_id) .'">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';276 echo '<a href="'. esc_url( admin_url( 'ms-sites.php?action=editblog&id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>'; 277 277 echo ' <small class="row-actions">'; 278 278 279 279 // Edit 280 echo '<a href="'. admin_url( 'ms-sites.php?action=editblog&id=' . $val->userblog_id) .'">' . __( 'Edit' ) . '</a> | ';280 echo '<a href="'. esc_url( admin_url( 'ms-sites.php?action=editblog&id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a> | '; 281 281 282 282 // View … … 284 284 if ( get_blog_status( $val->userblog_id, 'spam' ) == 1 ) 285 285 echo 'style="background-color: #faa" '; 286 echo 'href="' . get_home_url( $val->userblog_id ). '">' . __( 'View' ) . '</a>';286 echo 'href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>'; 287 287 288 288 echo '</small><br />';
Note: See TracChangeset
for help on using the changeset viewer.