wp-includes/ms-blogs.php:906Handler for updating the current site's posts count when a post status changes.
$new_statusstring$old_statusstring$postWP_Postoptionalnullfunction _update_posts_count_on_transition_post_status( $new_status, $old_status, $post = null ) { if ( $new_status === $old_status ) { return; } if ( 'post' !== get_post_type( $post ) ) { return; } if ( 'publish' !== $new_status && 'publish' !== $old_status ) { return; } update_posts_count();}Introduced in 4.0.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$post retyped from WP_Post to WP_Post|null.verified against sourcesrc/wp-includes/ms-blogs.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.