Skip to content

Commit cc9f7f9

Browse files
committed
Just use the encoded char
1 parent d2d35d9 commit cc9f7f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/class-wp-rest-oauth1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ public function join_with_equals_sign( $params, $query_params = array(), $key =
733733
$query_params = $this->join_with_equals_sign( $param_value, $query_params, $param_key );
734734
} else {
735735
if ( $key ) {
736-
$param_key = $key . self::urlencode_rfc3986( '[' ) . $param_key . self::urlencode_rfc3986( ']' ); // Handle multi-dimensional array
736+
$param_key = $key . '%5B' . $param_key . '%5D'; // Handle multi-dimensional array
737737
}
738738
$string = $param_key . '=' . $param_value; // join with equals sign
739739
$query_params[] = self::urlencode_rfc3986($string );

0 commit comments

Comments
 (0)