You appear to be a bot. Output may be restricted
Description
Return the query_string to pass to Akismet given the fields in $fields and $_SERVER
Usage
bw_build_akismet_query_string( $fields );
Parameters
- $fields
- ( array ) required – array of fields
Returns
voidSource
File name: oik/shortcodes/oik-contact-form.phpLines:
1 to 18 of 18
function bw_build_akismet_query_string( $fields ) { bw_trace2(); //bw_backtrace(); $form = $_SERVER; $form['blog'] = get_option( 'home' ); $form['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] ); $form['user_agent'] = $_SERVER['HTTP_USER_AGENT']; $form['referrer'] = $_SERVER['HTTP_REFERER']; $form['permalink'] = get_permalink(); $form['comment_type'] = $fields['comment_type']; // 'oik-contact-form'; $form['comment_author'] = bw_array_get( $fields, 'comment_author', null ); $form['comment_author_email'] = bw_array_get( $fields, 'comment_author_email', null ); $form['comment_author_url'] = bw_array_get( $fields, 'comment_author_url', null ); $form['comment_content'] = bw_array_get( $fields, 'comment_content', null ); unset( $form['HTTP_COOKIE'] ); $query_string = http_build_query( $form ); return( $query_string ); }View on GitHub View on Trac