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 . '
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 ); ?> | "> |