Closed janboddez closed 11 months ago
I think in, e.g., https://github.com/janboddez/share-on-mastodon/blob/de90a8a76ffa8efc18efca01e3864ae6d6712cbd/includes/class-block-editor.php#L117 we can simply move to is_int as it's a REST API only thing and JSON, unlike form requests, will give us an integer rather than a string.
Turns out this isn't true, at least not always.
I think in, e.g., https://github.com/janboddez/share-on-mastodon/blob/de90a8a76ffa8efc18efca01e3864ae6d6712cbd/includes/class-block-editor.php#L117 we can simply move to is_int as it's a REST API only thing and JSON, unlike form requests, will give us an integer rather than a string.