parent = $parent; $this->field = $field; $this->value = $value; $this->current = $current; $this->validate(); } //function /** * Field Render Function. * Takes the vars and validates them * * @since ReduxFramework 3.0.0 */ function validate() { $data = $this->value; $data = wp_filter_nohtml_kses( $data ); $data = str_replace( '>', '>', $data ); $data = stripslashes($data); if ($data != $this->value) { $this->field['msg'] = __( 'Unsafe strings were found in your CSS and have been filtered out.', 'virtue' ); $this->warning = $this->field; } $this->value = $data; } //function } //class }