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'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) { switch ( $_REQUEST['action'] ) { case 'resetwpml': $msg = __('WPML has been reset for the selected site.', 'sitepress'); break; case 'deactivatewpml': $msg = __('WPML has been deactivated for the selected site.', 'sitepress'); break; case 'activatewpml': $msg = __('WPML has been activated for the selected site.', 'sitepress'); break; default: $msg = false; } if ( $msg ) $msg = '

' . $msg . '

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

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


items)): ?> no_items(); ?>
pagination( 'bottom' ); ?>
array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ) ); $class = ''; ?> items as $blog):?> $col ) { if ( get_blog_status( $blog['blog_id'], $status ) == 1 ) { $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 .= "$state$sep"; } } ?>
 
 
domain, '', $blog['domain'] ) : $blog['path']; ?> '', 'backend' => '', 'activate' => '', 'deactivate' => '', 'archive' => '', 'unarchive' => '', 'spam' => '', 'unspam' => '', 'delete' => '', 'visit' => '', ); $actions['edit'] = '' . __( 'Edit', 'sitepress' ) . ''; $actions['backend'] = "" . __( 'Dashboard', 'sitepress' ) . ''; $actions['visit'] = "" . __( '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' ); ?>