Voxel Spring Sale is now Live →

Term Feed widget triggers _get_non_cached_ids strict type notice (WP 6.3+)

  • Solved
  • Posted 2 months ago

Hi team,

The Term Feed widget is passing string-type object IDs to WordPress core cache functions, which triggers a _get_non_cached_ids notice starting in WP 6.3:

“O ID do objeto deve ser um número inteiro, string fornecido.”

Stack trace points to: Voxel\Widgets\Term_Feed->render() at term-feed.php:621, which calls _prime_term_caches() → _get_non_cached_ids() → _validate_cache_id().
This happens on normal frontend page loads — no custom code involved. The fix should be casting term/object IDs to (int) before they reach WP’s cache layer.

We’ve suppressed the notice on our end by filtering doing_it_wrong_trigger_error for _get_non_cached_ids, but a proper fix in the theme would be appreciated.

Thanks!