Skip to content

Commit 381e8ef

Browse files
fix: zip parser errror
1 parent 0bb8356 commit 381e8ef

8 files changed

Lines changed: 12 additions & 366 deletions

File tree

admin.php

Lines changed: 0 additions & 237 deletions
This file was deleted.

client.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

readme.txt

Lines changed: 0 additions & 81 deletions
This file was deleted.

stackverify.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

stackverify.zip

6.43 KB
Binary file not shown.
File renamed without changes.

stackverify/client.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
class StackVerifyClient {
1+
<?php
22

3-
public static function send($formId, $data) {
3+
class StackVerifyClient
4+
{
5+
public static function send($formId, $data)
6+
{
7+
if (empty($formId)) {
8+
return;
9+
}
410

5-
if (!$formId) return;
6-
7-
wp_remote_post(
8-
"https://stackverify.site/api/f/" . $formId,
11+
return wp_remote_post(
12+
"https://stackverify.site/api/f/" . urlencode($formId),
913
[
1014
'method' => 'POST',
1115
'headers' => [
12-
'Content-Type' => 'application/json'
16+
'Content-Type' => 'application/json',
1317
],
14-
'body' => json_encode($data)
18+
'body' => json_encode($data),
1519
]
1620
);
1721
}

uninstall.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)