Index: functions.php
===================================================================
--- functions.php	(revision 25014)
+++ functions.php	(working copy)
@@ -156,30 +156,34 @@
  * @return void
  */
 function twentythirteen_scripts_styles() {
-	// Adds JavaScript to pages with the comment form to support sites with
-	// threaded comments (when in use).
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
-		wp_enqueue_script( 'comment-reply' );
+    // Only enqueue theme elements if we are on the front end
+    if ( ! is_admin() )
+    {
+        // Adds JavaScript to pages with the comment form to support sites with
+        // threaded comments (when in use).
+        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
+            wp_enqueue_script( 'comment-reply' );
 
-	// Adds Masonry to handle vertical alignment of footer widgets.
-	if ( is_active_sidebar( 'sidebar-1' ) )
-		wp_enqueue_script( 'jquery-masonry' );
+        // Adds Masonry to handle vertical alignment of footer widgets.
+        if ( is_active_sidebar( 'sidebar-1' ) )
+            wp_enqueue_script( 'jquery-masonry' );
 
-	// Loads JavaScript file with functionality specific to Twenty Thirteen.
-	wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2013-07-18', true );
+        // Loads JavaScript file with functionality specific to Twenty Thirteen.
+        wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2013-07-18', true );
 
-	// Add Open Sans and Bitter fonts, used in the main stylesheet.
-	wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
+        // Add Open Sans and Bitter fonts, used in the main stylesheet.
+        wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
 
-	// Add Genericons font, used in the main stylesheet.
-	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );
+        // Add Genericons font, used in the main stylesheet.
+        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );
 
-	// Loads our main stylesheet.
-	wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
+        // Loads our main stylesheet.
+        wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
 
-	// Loads the Internet Explorer specific stylesheet.
-	wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
-	wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
+        // Loads the Internet Explorer specific stylesheet.
+        wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
+        wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
+    }
 }
 add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );
 
