Compare commits
14 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f4744d10fd | ||
![]() |
1171642992 | ||
![]() |
c9d8e4ad61 | ||
![]() |
674be0f7fc | ||
![]() |
6128e82393 | ||
![]() |
17c53f7e7b | ||
![]() |
9bd1144042 | ||
![]() |
bfdab54f92 | ||
![]() |
a65579ee42 | ||
![]() |
3e8ab8ed1b | ||
![]() |
3c5b7d4bc3 | ||
![]() |
a251147362 | ||
![]() |
398e96c475 | ||
![]() |
98fa8b4c50 |
3 changed files with 30 additions and 6 deletions
14
.github/workflows/automerge.yml
vendored
Normal file
14
.github/workflows/automerge.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: Dependabot auto-merge minor/patch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
repository-projects: write
|
||||
|
||||
jobs:
|
||||
dependabot:
|
||||
uses: ShaneMcC/.github/.github/workflows/automergeMinorOrPatch.yml@master
|
||||
secrets: inherit
|
18
composer.lock
generated
18
composer.lock
generated
|
@ -8,16 +8,16 @@
|
|||
"packages": [
|
||||
{
|
||||
"name": "rmccue/requests",
|
||||
"version": "v2.0.3",
|
||||
"version": "v2.0.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/WordPress/Requests.git",
|
||||
"reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff"
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/b290dd974051bf1ead51d1947a5a56357e5b80ff",
|
||||
"reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -35,6 +35,12 @@
|
|||
"wp-coding-standards/wpcs": "^2.0",
|
||||
"yoast/phpunit-polyfills": "^1.0.0"
|
||||
},
|
||||
"suggest": {
|
||||
"art4/requests-psr18-adapter": "For using Requests as a PSR-18 HTTP Client",
|
||||
"ext-curl": "For improved performance",
|
||||
"ext-openssl": "For secure transport support",
|
||||
"ext-zlib": "For improved performance when decompressing encoded streams"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
|
@ -85,7 +91,7 @@
|
|||
"issues": "https://github.com/WordPress/Requests/issues",
|
||||
"source": "https://github.com/WordPress/Requests"
|
||||
},
|
||||
"time": "2022-05-10T08:42:27+00:00"
|
||||
"time": "2024-12-11T09:46:32+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -98,5 +104,5 @@
|
|||
"php": ">=7.1"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.3.0"
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
|
|
@ -1247,6 +1247,10 @@
|
|||
|
||||
try {
|
||||
if ($method == 'GET') {
|
||||
if (!is_array($data)) {
|
||||
$data = empty($data) ? [] : ['data' => $data];
|
||||
}
|
||||
|
||||
if (count($data) > 0) {
|
||||
$url = parse_url($url);
|
||||
if (isset($url['query'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue