get_pagenum(); $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } $msg = ''; if ( isset( $_REQUEST['updated'] ) && 'true' === $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) { switch ( $_REQUEST['action'] ) { case 'resetwpml': $msg = esc_html__( 'WPML has been reset for the selected site.', 'sitepress' ); break; case 'deactivatewpml': $msg = esc_html__( 'WPML has been deactivated for the selected site.', 'sitepress' ); break; case 'activatewpml': $msg = esc_html__( 'WPML has been activated for the selected site.', 'sitepress' ); break; default: $msg = false; } if ( $msg ) { $msg = '

' . $msg . '

'; } } $text = isset( $text ) ? $text : ''; ?>

' . esc_html__( 'Search results for “%s”' ) . '', esc_html( $s ) ); } ?>


items ) ) : ?> no_items(); ?>
pagination( 'bottom' ); ?>
array( 'site-archived', esc_html__( 'Archived' ) ), 'spam' => array( 'site-spammed', esc_html_x( 'Spam', 'site' ) ), 'deleted' => array( 'site-deleted', esc_html__( 'Deleted' ) ), 'mature' => array( 'site-mature', esc_html__( 'Mature' ) ), ); $class = ''; foreach ( $wp_list_table->items as $blog ) : if ( class_exists( 'WP_Site' ) && $blog instanceof WP_Site ) { $blog = object_to_array( $blog ); } $class = ( 'alternate' == $class ) ? '' : 'alternate'; $blog_states = array(); foreach ( $status_list as $status => $col ) { if ( 1 === get_blog_status( $blog['blog_id'], $status ) ) { $class = $col[0]; $blog_states[] = $col[1]; } } $blog_state = ''; if ( ! empty( $blog_states ) ) { $state_count = count( $blog_states ); $i = 0; $blog_state .= ' - '; foreach ( $blog_states as $state ) { ++ $i; ( $i == $state_count ) ? $sep = '' : $sep = ', '; $blog_state .= "" . esc_html( $state . $sep ) . ""; } } ?>
 
 
domain, '', $blog['domain'] ) : $blog['path']; ?> '', 'backend' => '', 'activate' => '', 'deactivate' => '', 'archive' => '', 'unarchive' => '', 'spam' => '', 'unspam' => '', 'delete' => '', 'visit' => '', ); $actions['edit'] = '' . esc_html__( 'Edit', 'sitepress' ) . ''; $actions['backend'] = "" . esc_html__( 'Dashboard', 'sitepress' ) . ''; $actions['visit'] = "" . esc_html__( 'Visit', 'sitepress' ) . ''; $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname ); echo $wp_list_table->row_actions( $actions ); ?>
blog_id ) : ?>
">
pagination( 'bottom' ); ?>