$_REQUEST['orderby'
] = '';
} if ( !
isset( $_REQUEST['order'
] ) ) { $_GET['order'
] = 'DESC';
$_REQUEST['order'
] = 'DESC';
} } $args = array
( 'number' =>
(int) $per_page,
'offset' =>
(int) ( ( $pagenum - 1
) *
$per_page ),
'network_id' =>
get_current_network_id(),
);
if ( empty( $s ) ) { // Nothing to do.
} elseif ( preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',
$s ) ||
preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.?$/',
$s ) ||
preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.?$/',
$s ) ||
preg_match( '/^[0-9]{1,3}\.$/',
$s ) ) { // IPv4 address.
$sql =
$wpdb->
prepare( "