mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: wpgancio add php8.2 compatibility
This commit is contained in:
parent
ad8c3538b0
commit
17189414fd
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ function wpgancio_delete_post ($post_id) {
|
||||||
$gancio_id = get_post_meta($post_id, 'wpgancio_gancio_id', TRUE);
|
$gancio_id = get_post_meta($post_id, 'wpgancio_gancio_id', TRUE);
|
||||||
if ($gancio_id) {
|
if ($gancio_id) {
|
||||||
$http = _wp_http_get_object();
|
$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',
|
'method' => 'DELETE',
|
||||||
'headers' => array (
|
'headers' => array (
|
||||||
'Authorization' => 'Bearer ' . (get_option('wpgancio_token') ?: get_site_option('wpgancio_token'))
|
'Authorization' => 'Bearer ' . (get_option('wpgancio_token') ?: get_site_option('wpgancio_token'))
|
||||||
|
|
|
@ -4,7 +4,7 @@ Donate link: https://gancio.org
|
||||||
Tags: events, gancio, fediverse, AP, activity pub
|
Tags: events, gancio, fediverse, AP, activity pub
|
||||||
Requires at least: 4.7
|
Requires at least: 4.7
|
||||||
Tested up to: 6.4
|
Tested up to: 6.4
|
||||||
Stable tag: 1.8
|
Stable tag: 1.9
|
||||||
Requires PHP: 7.0
|
Requires PHP: 7.0
|
||||||
License: AGPLv3 or later
|
License: AGPLv3 or later
|
||||||
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
|
|
|
@ -63,7 +63,7 @@ function wpgancio_update_options ($old_value, $instance_url) {
|
||||||
"response_type" => "code",
|
"response_type" => "code",
|
||||||
"redirect_uri" => $redirect_uri,
|
"redirect_uri" => $redirect_uri,
|
||||||
"scope" => "event:write",
|
"scope" => "event:write",
|
||||||
"client_id" => $client_id ), "${instance_url}/oauth/authorize"));
|
"client_id" => $client_id ), "{$instance_url}/oauth/authorize"));
|
||||||
// return $instance_url;
|
// return $instance_url;
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue