field['msg'] = $this->field['msg'] ?? esc_html__( 'You must provide a valid URL for this option.', 'redux-framework' ); if ( false === filter_var( $this->value, FILTER_VALIDATE_URL ) ) { $this->value = ( isset( $this->current ) ) ? $this->current : ''; $this->field['current'] = $this->value; $this->error = $this->field; } else { $this->value = esc_url_raw( $this->value ); } } } }