Plugin Directory

Changeset 3366854


Ignore:
Timestamp:
09/24/2025 04:05:35 AM (6 months ago)
Author:
moceanapiplugin
Message:

use http_build_query to generate url encoded query string

Location:
moceansms-order-sms-notification-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • moceansms-order-sms-notification-for-woocommerce/trunk/lib/MoceanSMS.php

    r3365498 r3366854  
    154154            curl_setopt($rest_request, CURLOPT_POSTFIELDS, http_build_query($params));
    155155        } else {
    156             $query_string = '';
    157             foreach($params as $parameter_name => $parameter_value) {
    158                 $query_string .= '&'.$parameter_name.'='.$parameter_value;
    159             }
    160             $query_string = substr($query_string, 1);
     156            $query_string = http_build_query($params);
    161157            curl_setopt($rest_request, CURLOPT_URL, $url.'?'.$query_string);
    162158        }
  • moceansms-order-sms-notification-for-woocommerce/trunk/readme.txt

    r3366264 r3366854  
    66WC requires at least: 2.6
    77WC tested up to: 5.2.2
    8 Stable tag: 1.5.4
     8Stable tag: 1.5.5
    99Requires PHP: 5.6
    1010License: GPLv3
Note: See TracChangeset for help on using the changeset viewer.