filter_entry_for_list_display( $entry, $code, $code_data ); $details['module']['content'] = $entry['module_display']; $details['description']['content'] = $entry['description']; if ( isset( $entry['data']['expires_gmt'] ) ) { $timestamp = strtotime( $entry['data']['expires_gmt'] ); $datetime = date( 'Y-m-d H:i:s', $timestamp + ITSEC_Core::get_time_offset() ); $details['expiration'] = array( 'header' => esc_html__( 'Block Expiration', 'better-wp-security' ), 'content' => $datetime, ); } if ( isset( $entry['data']['details'] ) && isset( $entry['data']['details']['source'] ) ) { if ( 'xmlrpc' === $entry['data']['details']['source'] ) { $source = esc_html__( 'XMLRPC Authentication', 'better-wp-security' ); } else if ( 'rest_api' === $entry['data']['details']['source'] ) { $source = esc_html__( 'REST API Authentication', 'better-wp-security' ); } else { $source = esc_html__( 'Login Page', 'better-wp-security' ); } $details['source'] = array( 'header' => esc_html__( 'Login Source' ), 'content' => $source, ); } return $details; } } new ITSEC_IPCheck_Logs();