Merge pull request #20077 from rnaby/150518-150047
Unnecessary Else Removed
This commit is contained in:
commit
18ea88d05d
|
@ -227,9 +227,9 @@ function wc_rest_validate_reports_request_arg( $value, $request, $param ) {
|
||||||
function wc_rest_urlencode_rfc3986( $value ) {
|
function wc_rest_urlencode_rfc3986( $value ) {
|
||||||
if ( is_array( $value ) ) {
|
if ( is_array( $value ) ) {
|
||||||
return array_map( 'wc_rest_urlencode_rfc3986', $value );
|
return array_map( 'wc_rest_urlencode_rfc3986', $value );
|
||||||
} else {
|
|
||||||
return str_replace( array( '+', '%7E' ), array( ' ', '~' ), rawurlencode( $value ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return str_replace( array( '+', '%7E' ), array( ' ', '~' ), rawurlencode( $value ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue