Index: src/wp-includes/post-template.php
===================================================================
--- src/wp-includes/post-template.php	(revision 47433)
+++ src/wp-includes/post-template.php	(working copy)
@@ -261,13 +261,6 @@
  * @since 0.71
  * @since 5.2.0 Added the `$post` parameter.
  *
- * @global int   $page      Page number of a single post/page.
- * @global int   $more      Boolean indicator for whether single post/page is being viewed.
- * @global bool  $preview   Whether post/page is in preview mode.
- * @global array $pages     Array of all pages in post/page. Each array element contains
- *                          part of the content separated by the `<!--nextpage-->` tag.
- * @global int   $multipage Boolean indicator for whether multiple pages are in play.
- *
  * @param string             $more_link_text Optional. Content for when there is more text.
  * @param bool               $strip_teaser   Optional. Strip teaser content before the more text. Default is false.
  * @param WP_Post|object|int $post           Optional. WP_Post instance or Post ID/object. Default is null.
@@ -274,8 +267,6 @@
  * @return string
  */
 function get_the_content( $more_link_text = null, $strip_teaser = false, $post = null ) {
-	global $page, $more, $preview, $pages, $multipage;
-
 	$_post = get_post( $post );
 
 	if ( ! ( $_post instanceof WP_Post ) ) {
@@ -282,11 +273,7 @@
 		return '';
 	}
 
-	if ( null === $post ) {
-		$elements = compact( 'page', 'more', 'preview', 'pages', 'multipage' );
-	} else {
-		$elements = generate_postdata( $_post );
-	}
+	$elements = generate_postdata( $_post );
 
 	if ( null === $more_link_text ) {
 		$more_link_text = sprintf(
