WordPress type is integer not int
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m6s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m10s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m7s

This commit is contained in:
André Menrath 2025-01-03 20:15:19 +01:00
parent 6950d52264
commit 7e75e61b70
2 changed files with 2 additions and 2 deletions

View file

@ -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',

View file

@ -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,