wp-includes/post.php:1513Retrieves a post status object by name.
$post_statusstringstdClass|nullfunction get_post_status_object( $post_status ) { global $wp_post_statuses; if ( ! is_string( $post_status ) || empty( $wp_post_statuses[ $post_status ] ) ) { return null; } return $wp_post_statuses[ $post_status ];}Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/post.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.