From 9483a7ec196bc5fbb6db0be3735032ebc014e06c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 23 Aug 2017 14:27:30 +0100 Subject: [PATCH] invalid return --- includes/abstracts/abstract-wc-rest-controller.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-rest-controller.php b/includes/abstracts/abstract-wc-rest-controller.php index b06f5bddaec..b32f0c055d3 100644 --- a/includes/abstracts/abstract-wc-rest-controller.php +++ b/includes/abstracts/abstract-wc-rest-controller.php @@ -205,7 +205,6 @@ abstract class WC_REST_Controller extends WP_REST_Controller { public function validate_setting_text_field( $value, $setting ) { $value = is_null( $value ) ? '' : $value; return wp_kses_post( trim( stripslashes( $value ) ) ); - return $value; } /**