Completed
Push — develop ( b6add3...0b006f )
by Aristeides
02:13
created
controls/repeater/class-kirki-control-repeater.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
 		$media_fields_to_filter = array();
111 111
 
112 112
 		foreach ( $args['fields'] as $key => $value ) {
113
-			$args['fields'][ $key ]['default'] = ( ! isset( $value['default'] ) ) ? '' :;
114
-			$args['fields'][ $key ]['label']   = ( ! isset( $value['label'] ) ) ? '' :;
115
-			$args['fields'][ $key ]['id']      = $key;
113
+			$args['fields'][$key]['default'] = ( ! isset( $value['default'] ) ) ? '' : ;
114
+			$args['fields'][$key]['label']   = ( ! isset( $value['label'] ) ) ? '' : ;
115
+			$args['fields'][$key]['id']      = $key;
116 116
 
117 117
 			// We check if the filed is an uploaded media ( image , file, video, etc.. ).
118 118
 			if ( isset( $value['type'] ) ) {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 					case 'cropped_image':
122 122
 					case 'upload':
123 123
 						// We add it to the list of fields that need some extra filtering/processing.
124
-						$media_fields_to_filter[ $key ] = true;
124
+						$media_fields_to_filter[$key] = true;
125 125
 						break;
126 126
 
127 127
 					case 'dropdown-pages':
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 							)
137 137
 						);
138 138
 						// Hackily add in the data link parameter.
139
-						$dropdown = str_replace( '<select', '<select data-field="' . esc_attr( $args['fields'][ $key ]['id'] ) . '"' . $this->get_link(), $dropdown );
140
-						$args['fields'][ $key ]['dropdown'] = $dropdown;
139
+						$dropdown = str_replace( '<select', '<select data-field="' . esc_attr( $args['fields'][$key]['id'] ) . '"' . $this->get_link(), $dropdown );
140
+						$args['fields'][$key]['dropdown'] = $dropdown;
141 141
 						break;
142 142
 				}
143 143
 			}
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
 			}
554 554
 
555 555
 			// Validating row label field.
556
-			if ( isset( $args['row_label']['field'] ) && ! empty( $args['row_label']['field'] ) && isset( $args['fields'][ esc_attr( $args['row_label']['field'] ) ] ) ) {
556
+			if ( isset( $args['row_label']['field'] ) && ! empty( $args['row_label']['field'] ) && isset( $args['fields'][esc_attr( $args['row_label']['field'] )] ) ) {
557 557
 				$this->row_label['field'] = esc_attr( $args['row_label']['field'] );
558 558
 			} else {
559 559
 				// If from field is not set correctly, making sure standard is set as the type.
@@ -589,6 +589,6 @@  discard block
 block discarded – undo
589 589
 		if ( false === $id ) {
590 590
 			return $translation_strings;
591 591
 		}
592
-		return $translation_strings[ $id ];
592
+		return $translation_strings[$id];
593 593
 	}
594 594
 }
Please login to merge, or discard this patch.