Merge pull request #20077 from rnaby/150518-150047

Unnecessary Else Removed
This commit is contained in:
Mike Jolley 2018-05-24 16:32:21 +01:00 committed by GitHub
commit 18ea88d05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -227,9 +227,9 @@ function wc_rest_validate_reports_request_arg( $value, $request, $param ) {
function wc_rest_urlencode_rfc3986( $value ) {
if ( is_array( $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 ) );
}
/**