Index: src/wp-includes/class-wp-customize-panel.php
===================================================================
--- src/wp-includes/class-wp-customize-panel.php	(revision 29574)
+++ src/wp-includes/class-wp-customize-panel.php	(working copy)
@@ -162,7 +162,7 @@
 	}
 
 	/**
-	 * Render the panel, and the sections that have been added to it.
+	 * Render the panel container, and then its contents.
 	 *
 	 * @since 4.0.0
 	 * @access protected
@@ -176,26 +176,36 @@
 			</h3>
 			<span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
 			<ul class="accordion-sub-container control-panel-content">
-				<li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>">
-					<div class="accordion-section-title" tabindex="0">
-						<span class="preview-notice"><?php
-							/* translators: %s is the site/panel title in the Customizer */
-							echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' );
-						?></span>
-					</div>
-					<?php if ( ! empty( $this->description ) ) : ?>
-						<div class="accordion-section-content description">
-							<?php echo $this->description; ?>
-						</div>
-					<?php endif; ?>
-				</li>
-				<?php
-				foreach ( $this->sections as $section ) {
-					$section->maybe_render();
-				}
-				?>
+				<?php $this->render_content(); ?>
 			</ul>
 		</li>
 		<?php
 	}
+
+	/**
+	 * Render the sections that have been added to the panel.
+	 *
+	 * @since 4.0.0
+	 * @access protected
+	 */
+	protected function render_content() {
+		?>
+		<li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>">
+			<div class="accordion-section-title" tabindex="0">
+				<span class="preview-notice"><?php
+					/* translators: %s is the site/panel title in the Customizer */
+					echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' );
+				?></span>
+			</div>
+			<?php if ( ! empty( $this->description ) ) : ?>
+				<div class="accordion-section-content description">
+					<?php echo $this->description; ?>
+				</div>
+			<?php endif; ?>
+		</li>
+		<?php
+		foreach ( $this->sections as $section ) {
+			$section->maybe_render();
+		}
+	}
 }
\ No newline at end of file
