Skip to content

Commit 3aa1f99

Browse files
committed
wip
1 parent 2b09dc2 commit 3aa1f99

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/WebhookTrigger.php

+4-8
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,19 @@ public static function triggerEditTerm($id, $tax_id, $tax_slug)
7575
*/
7676
public static function fireWebhook()
7777
{
78-
$webhook = sitesauce_deployments_get_build_hook();
78+
$hook = sitesauce_deployments_get_build_hook();
7979

80-
if (!$webhook) {
80+
if (!$hook) {
8181
return;
8282
}
8383

84-
if (false === filter_var($webhook, FILTER_VALIDATE_URL)) {
84+
if (false === filter_var($hook, FILTER_VALIDATE_URL)) {
8585
return;
8686
}
8787

88-
$args = apply_filters('sitesauce_deployments_webhook_request_args', [
89-
'blocking' => false
90-
]);
91-
9288
do_action('sitesauce_deployments_before_fire_webhook');
9389

94-
$return = wp_remote_get($webhook, $args);
90+
$return = file_get_contents($hook);
9591

9692
do_action('sitesauce_deployments_after_fire_webhook');
9793

0 commit comments

Comments
 (0)