File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -729,14 +729,14 @@ public function create_signature_string( $params ) {
729
729
*/
730
730
public function join_with_equals_sign ( $ params , $ query_params = array (), $ key = '' ) {
731
731
foreach ( $ params as $ param_key => $ param_value ) {
732
+ if ( $ key ) {
733
+ $ param_key = $ key . '%5B ' . $ param_key . '%5D ' ; // Handle multi-dimensional array
734
+ }
732
735
if ( is_array ( $ param_value ) ) {
733
736
$ query_params = $ this ->join_with_equals_sign ( $ param_value , $ query_params , $ param_key );
734
737
} else {
735
- if ( $ key ) {
736
- $ param_key = $ key . '%5B ' . $ param_key . '%5D ' ; // Handle multi-dimensional array
737
- }
738
738
$ string = $ param_key . '= ' . $ param_value ; // join with equals sign
739
- $ query_params [] = self ::urlencode_rfc3986 ($ string );
739
+ $ query_params [] = self ::urlencode_rfc3986 ( $ string );
740
740
}
741
741
}
742
742
return $ query_params ;
You can’t perform that action at this time.
0 commit comments