Skip to content

Commit 392bd7c

Browse files
committed
Prefer (int) coercion instead of absint
1 parent d95ee6c commit 392bd7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/collaboration/class-wp-http-polling-sync-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function handle_request( WP_REST_Request $request ) {
269269
private function can_user_sync_entity_type( string $entity_kind, string $entity_name, ?string $object_id ): bool {
270270
// Handle single post type entities with a defined object ID.
271271
if ( 'postType' === $entity_kind && is_numeric( $object_id ) ) {
272-
return current_user_can( 'edit_post', absint( $object_id ) );
272+
return current_user_can( 'edit_post', (int) $object_id );
273273
}
274274

275275
// All of the remaining checks are for collections. If an object ID is

0 commit comments

Comments
 (0)