Compare commits
No commits in common. "master" and "0.5.4" have entirely different histories.
3 changed files with 6 additions and 30 deletions
14
.github/workflows/automerge.yml
vendored
14
.github/workflows/automerge.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
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.14",
|
||||
"version": "v2.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/WordPress/Requests.git",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1"
|
||||
"reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"reference": "9b228eef149e1752b037bf79cef4ca73a7b1fea1",
|
||||
"url": "https://api.github.com/repos/WordPress/Requests/zipball/b290dd974051bf1ead51d1947a5a56357e5b80ff",
|
||||
"reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -35,12 +35,6 @@
|
|||
"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": [
|
||||
|
@ -91,7 +85,7 @@
|
|||
"issues": "https://github.com/WordPress/Requests/issues",
|
||||
"source": "https://github.com/WordPress/Requests"
|
||||
},
|
||||
"time": "2024-12-11T09:46:32+00:00"
|
||||
"time": "2022-05-10T08:42:27+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -104,5 +98,5 @@
|
|||
"php": ">=7.1"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
|
@ -1247,10 +1247,6 @@
|
|||
|
||||
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