Fixed coding standards for #19866

This commit is contained in:
Claudio Sanches 2018-04-27 16:00:53 -03:00
parent b7f1d20148
commit 96c538bf4a
1 changed files with 2 additions and 4 deletions

View File

@ -1075,10 +1075,8 @@ class WC_Checkout {
* @return string
*/
public function get_value( $input ) {
// WPCS: input var ok, CSRF OK.
if ( ! empty( $_POST[ $input ] ) ) {
// WPCS: input var ok, CSRF OK.
return wc_clean( wp_unslash( $_POST[ $input ] ) );
if ( ! empty( $_POST[ $input ] ) ) { // WPCS: input var ok, CSRF OK.
return wc_clean( wp_unslash( $_POST[ $input ] ) ); // WPCS: input var ok, CSRF OK.
}
$value = apply_filters( 'woocommerce_checkout_get_value', null, $input );