Index: src/wp-content/themes/twentyfourteen/inc/featured-content.php
===================================================================
--- src/wp-content/themes/twentyfourteen/inc/featured-content.php	(revision 26078)
+++ src/wp-content/themes/twentyfourteen/inc/featured-content.php	(working copy)
@@ -429,22 +429,20 @@
 	public static function validate_settings( $input ) {
 		$output = array();
 
-		if ( isset( $input['tag-id'] ) )
-			$output['tag-id'] = absint( $input['tag-id'] );
+		if ( empty( $input['tag-name'] ) ) {
+			$output['tag-id'] = 0;
+		} else {
+			$new_tag = wp_create_tag( sanitize_text_field( $input['tag-name'] ) );
 
-		if ( isset( $input['tag-name'] ) ) {
-			if ( empty( $input['tag-name'] ) ) {
-				$output['tag-id'] = 0;
-			} else {
-				$new_tag = wp_create_tag( $input['tag-name'] );
-				if ( ! is_wp_error( $new_tag ) && isset( $new_tag['term_id'] ) )
-					$tag = get_term( $new_tag['term_id'], 'post_tag' );
+			if ( is_int( $new_tag ) ) {
+				$output['tag-id'] = absint( $new_tag );
+			} elseif ( ! is_wp_error( $new_tag ) && isset( $new_tag['term_id'] ) ) {
+				$tag = get_term( $new_tag['term_id'], 'post_tag' );
 				if ( isset( $tag->term_id ) )
 					$output['tag-id'] = $tag->term_id;
-				if ( is_int( $new_tag ) )
-					$output['tag-id'] = $new_tag;
-				$output['tag-name'] = get_term( $output['tag-id'], 'post_tag' )->name;
 			}
+
+			$output['tag-name'] = get_term( $output['tag-id'], 'post_tag' )->name;
 		}
 
 		if ( isset( $input['quantity'] ) )
