File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -725,12 +725,12 @@ public function create_signature_string( $params ) {
725
725
*/
726
726
public function join_with_equals_sign ( $ params , $ query_params = array (), $ key = '' ) {
727
727
foreach ( $ params as $ param_key => $ param_value ) {
728
+ if ( $ key ) {
729
+ $ param_key = $ key . '[ ' . $ param_key . '] ' ; // Handle multi-dimensional array
730
+ }
728
731
if ( is_array ( $ param_value ) ) {
729
732
$ query_params = $ this ->join_with_equals_sign ( $ param_value , $ query_params , $ param_key );
730
733
} else {
731
- if ( $ key ) {
732
- $ param_key = $ key . '[ ' . $ param_key . '] ' ; // Handle multi-dimensional array
733
- }
734
734
$ string = $ param_key . '= ' . $ param_value ; // join with equals sign
735
735
$ query_params [] = urlencode ( $ string );
736
736
}
You can’t perform that action at this time.
0 commit comments