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 ) {
729729 */
730730 public function join_with_equals_sign ( $ params , $ query_params = array (), $ key = '' ) {
731731 foreach ( $ params as $ param_key => $ param_value ) {
732+ if ( $ key ) {
733+ $ param_key = $ key . '%5B ' . $ param_key . '%5D ' ; // Handle multi-dimensional array
734+ }
732735 if ( is_array ( $ param_value ) ) {
733736 $ query_params = $ this ->join_with_equals_sign ( $ param_value , $ query_params , $ param_key );
734737 } else {
735- if ( $ key ) {
736- $ param_key = $ key . '%5B ' . $ param_key . '%5D ' ; // Handle multi-dimensional array
737- }
738738 $ string = $ param_key . '= ' . $ param_value ; // join with equals sign
739- $ query_params [] = self ::urlencode_rfc3986 ($ string );
739+ $ query_params [] = self ::urlencode_rfc3986 ( $ string );
740740 }
741741 }
742742 return $ query_params ;
You can’t perform that action at this time.
0 commit comments