diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
index a7f54d697b..e293760673 100644
--- a/src/wp-includes/widgets.php
+++ b/src/wp-includes/widgets.php
@@ -718,7 +718,7 @@ function dynamic_sidebar( $index = 1 ) {
 	 */
 	do_action( 'dynamic_sidebar_before', $index, true );
 
-	if ( ! empty( $sidebar['before_sidebar'] ) ) {
+	if ( ! is_admin() && ! empty( $sidebar['before_sidebar'] ) ) {
 		echo $sidebar['before_sidebar'];
 	}
 
@@ -823,7 +823,7 @@ function dynamic_sidebar( $index = 1 ) {
 		}
 	}
 
-	if ( ! empty( $sidebar['after_sidebar'] ) ) {
+	if ( ! is_admin() && ! empty( $sidebar['after_sidebar'] ) ) {
 		echo $sidebar['after_sidebar'];
 	}
 
