'no' => __('No', 'wp-hide-security-enhancer'), 'yes' => __('Yes', 'wp-hide-security-enhancer'), ), 'default_value' => 'no', 'sanitize_type' => array('sanitize_title', 'strtolower'), 'processing_order' => 3 ); return $this->module_settings; } function _init_add_slash($saved_field_data) { if(empty($saved_field_data) || $saved_field_data == 'no') return; //nothing to do at the moment } function _callback_saved_add_slash($saved_field_data) { $processing_response = array(); if(empty($saved_field_data) || $saved_field_data == 'no') return FALSE; if($this->wph->server_htaccess_config === TRUE) //\nRewriteCond %{ENV:REDIRECT_STATUS} !^$" $processing_response['rewrite'] = "\nRewriteCond %{REQUEST_URI} /+[^\.]+$" . "\nRewriteCond %{REQUEST_METHOD} !POST" . "\nRewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]"; if($this->wph->server_web_config === TRUE) $processing_response['rewrite'] = ' '; return $processing_response; } } ?>