From 7e75e61b7001ac0d941c0cdb84d665202b2eb830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 3 Jan 2025 20:15:19 +0100 Subject: [PATCH] WordPress type is integer not int --- includes/activitypub/collection/class-event-sources.php | 2 +- includes/class-settings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/activitypub/collection/class-event-sources.php b/includes/activitypub/collection/class-event-sources.php index 83baf71..1d2c5ed 100644 --- a/includes/activitypub/collection/class-event-sources.php +++ b/includes/activitypub/collection/class-event-sources.php @@ -155,7 +155,7 @@ class Event_Sources { self::POST_TYPE, '_event_bridge_for_activitypub_event_count', array( - 'type' => 'int', + 'type' => 'integer', 'single' => true, 'sanitize_callback' => 'absint', 'default' => '0', diff --git a/includes/class-settings.php b/includes/class-settings.php index 149baea..1b5e872 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -109,7 +109,7 @@ class Settings { 'event-bridge-for-activitypub', 'event_bridge_for_activitypub_event_source_cache_retention', array( - 'type' => 'int', + 'type' => 'integer', 'show_in_rest' => true, 'description' => \__( 'The cache retention period for external event sources.', 'event-bridge-for-activitypub' ), 'default' => WEEK_IN_SECONDS,