equal
deleted
inserted
replaced
51 'heading_pagination' => __( 'Sites list navigation' ), |
51 'heading_pagination' => __( 'Sites list navigation' ), |
52 'heading_list' => __( 'Sites list' ), |
52 'heading_list' => __( 'Sites list' ), |
53 ) |
53 ) |
54 ); |
54 ); |
55 |
55 |
56 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; |
56 $id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0; |
57 |
57 |
58 if ( isset( $_GET['action'] ) ) { |
58 if ( isset( $_GET['action'] ) ) { |
59 /** This action is documented in wp-admin/network/edit.php */ |
59 /** This action is documented in wp-admin/network/edit.php */ |
60 do_action( 'wpmuadminedit' ); |
60 do_action( 'wpmuadminedit' ); |
61 |
61 |
175 wpmu_delete_blog( $site_id, true ); |
175 wpmu_delete_blog( $site_id, true ); |
176 } |
176 } |
177 break; |
177 break; |
178 |
178 |
179 case 'allblogs': |
179 case 'allblogs': |
180 if ( ( isset( $_POST['action'] ) || isset( $_POST['action2'] ) ) && isset( $_POST['allblogs'] ) ) { |
180 if ( isset( $_POST['action'] ) && isset( $_POST['allblogs'] ) ) { |
181 $doaction = -1 != $_POST['action'] ? $_POST['action'] : $_POST['action2']; |
181 $doaction = $_POST['action']; |
182 |
182 |
183 foreach ( (array) $_POST['allblogs'] as $key => $val ) { |
183 foreach ( (array) $_POST['allblogs'] as $key => $val ) { |
184 if ( '0' != $val && get_network()->site_id != $val ) { |
184 if ( '0' != $val && get_network()->site_id != $val ) { |
185 switch ( $doaction ) { |
185 switch ( $doaction ) { |
186 case 'delete': |
186 case 'delete': |
364 |
364 |
365 <div class="wrap"> |
365 <div class="wrap"> |
366 <h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1> |
366 <h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1> |
367 |
367 |
368 <?php if ( current_user_can( 'create_sites' ) ) : ?> |
368 <?php if ( current_user_can( 'create_sites' ) ) : ?> |
369 <a href="<?php echo network_admin_url( 'site-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a> |
369 <a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a> |
370 <?php endif; ?> |
370 <?php endif; ?> |
371 |
371 |
372 <?php |
372 <?php |
373 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
373 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
374 /* translators: %s: Search query. */ |
374 echo '<span class="subtitle">'; |
375 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); |
375 printf( |
|
376 /* translators: %s: Search query. */ |
|
377 __( 'Search results for: %s' ), |
|
378 '<strong>' . esc_html( $s ) . '</strong>' |
|
379 ); |
|
380 echo '</span>'; |
376 } |
381 } |
377 ?> |
382 ?> |
378 |
383 |
379 <hr class="wp-header-end"> |
384 <hr class="wp-header-end"> |
380 |
385 |