Completed
Branch master (033387)
by Brandon
02:48
created
wp-bootstrap-navwalker.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@
 block discarded – undo
63 63
 			$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
64 64
 
65 65
 			/**
66
-			* Dividers, Headers or Disabled
67
-			* =============================
68
-			* Determine whether the item is a Divider, Header, Disabled or regular
69
-			* menu item. To prevent errors we use the strcasecmp() function to so a
70
-			* comparison that is not case sensitive. The strcasecmp() function returns
71
-			* a 0 if the strings are equal.
72
-		 	*/
66
+			 * Dividers, Headers or Disabled
67
+			 * =============================
68
+			 * Determine whether the item is a Divider, Header, Disabled or regular
69
+			 * menu item. To prevent errors we use the strcasecmp() function to so a
70
+			 * comparison that is not case sensitive. The strcasecmp() function returns
71
+			 * a 0 if the strings are equal.
72
+			 */
73 73
 			if ( 0 === strcasecmp( $item->attr_title, 'divider' ) && 1 === $depth ) {
74 74
 				$output .= $indent . '<li role="presentation" class="divider">';
75 75
 			} elseif ( 0 === strcasecmp( $item->title, 'divider' ) && 1 === $depth ) {
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,11 +131,15 @@
 block discarded – undo
131 131
 								$pos = strpos( esc_attr( $item->attr_title ), 'glyphicon' );
132 132
 					if ( false !== $pos ) :
133 133
 						$item_output .= '<a' . $attributes . '><span class="glyphicon ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></span>&nbsp;';
134
-								else :
134
+								else {
135
+									:
135 136
 									$item_output .= '<a' . $attributes . '><i class="fa ' . esc_attr( $item->attr_title ) . '" aria-hidden="true"></i>&nbsp;';
137
+								}
136 138
 											endif;
137
-				else :
139
+				else {
140
+					:
138 141
 					$item_output .= '<a' . $attributes . '>';
142
+				}
139 143
 				endif;
140 144
 				$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
141 145
 				$item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>';
Please login to merge, or discard this patch.