wp-includes/category-template.php:276Displays category list for a post in either HTML list or custom format.
$separatorstringoptional''$parentsstringoptional''$post_idintoptionalfalsefunction the_category( $separator = '', $parents = '', $post_id = false ) { echo get_the_category_list( $separator, $parents, $post_id );}Introduced in 0.71. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$post_id retyped from int to int|false.verified against sourcesrc/wp-includes/category-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.