From 17189414fdecf9c0b7cbdf50d3a7f9f2164c7f7e Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 14 Feb 2024 22:57:17 +0100 Subject: [PATCH] fix: wpgancio add php8.2 compatibility --- wp-plugin/oauth.php | 2 +- wp-plugin/readme.txt | 2 +- wp-plugin/settings.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-plugin/oauth.php b/wp-plugin/oauth.php index 0f4e84e8..80120e57 100644 --- a/wp-plugin/oauth.php +++ b/wp-plugin/oauth.php @@ -14,7 +14,7 @@ function wpgancio_delete_post ($post_id) { $gancio_id = get_post_meta($post_id, 'wpgancio_gancio_id', TRUE); if ($gancio_id) { $http = _wp_http_get_object(); - $http->request( "${instance_url}/api/event/${gancio_id}", array( + $http->request( "{$instance_url}/api/event/{$gancio_id}", array( 'method' => 'DELETE', 'headers' => array ( 'Authorization' => 'Bearer ' . (get_option('wpgancio_token') ?: get_site_option('wpgancio_token')) diff --git a/wp-plugin/readme.txt b/wp-plugin/readme.txt index d3b90030..e9550378 100644 --- a/wp-plugin/readme.txt +++ b/wp-plugin/readme.txt @@ -4,7 +4,7 @@ Donate link: https://gancio.org Tags: events, gancio, fediverse, AP, activity pub Requires at least: 4.7 Tested up to: 6.4 -Stable tag: 1.8 +Stable tag: 1.9 Requires PHP: 7.0 License: AGPLv3 or later License URI: https://www.gnu.org/licenses/agpl-3.0.html diff --git a/wp-plugin/settings.php b/wp-plugin/settings.php index da5c1df7..abcc0a03 100644 --- a/wp-plugin/settings.php +++ b/wp-plugin/settings.php @@ -63,7 +63,7 @@ function wpgancio_update_options ($old_value, $instance_url) { "response_type" => "code", "redirect_uri" => $redirect_uri, "scope" => "event:write", - "client_id" => $client_id ), "${instance_url}/oauth/authorize")); + "client_id" => $client_id ), "{$instance_url}/oauth/authorize")); // return $instance_url; exit; }