wp-includes/link-template.php:2544Displays or retrieves the next posts page link.
$max_pageintoptional0$displaybooloptionaltruestring|nullfunction next_posts( $max_page = 0, $display = true ) { $link = get_next_posts_page_link( $max_page ); $output = $link ? esc_url( $link ) : ''; if ( $display ) { echo $output; } else { return $output; }}Introduced in 0.71. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
string|void to string|null.verified against sourcesrc/wp-includes/link-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.