Completed
Pull Request — develop (#1588)
by Zack
37:04 queued 17:05
created
future/includes/class-gv-settings-view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 		if ( ! $detailed ) {
556 556
 			$defaults = array();
557 557
 			foreach ( $default_settings as $key => $value ) {
558
-				$defaults[ $key ] = $value['value'];
558
+				$defaults[ $key ] = $value[ 'value' ];
559 559
 			}
560 560
 			return $defaults;
561 561
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 				// If the $group argument is set for the method,
567 567
 				// ignore any settings that aren't in that group.
568 568
 				if ( ! empty( $group ) && is_string( $group ) ) {
569
-					if ( empty( $value['group'] ) || $value['group'] !== $group ) {
569
+					if ( empty( $value[ 'group' ] ) || $value[ 'group' ] !== $group ) {
570 570
 						unset( $default_settings[ $key ] );
571 571
 					}
572 572
 				}
Please login to merge, or discard this patch.
includes/gutenberg/blocks/field/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 			$value = esc_attr( sanitize_text_field( $value ) );
56 56
 
57 57
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
58
-				$shortcode_attributes[] = "{$attribute}={$value}";
58
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
59 59
 			}
60 60
 		}
61 61
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/entry/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 			$value = esc_attr( sanitize_text_field( $value ) );
56 56
 
57 57
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
58
-				$shortcode_attributes[] = "{$attribute}={$value}";
58
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
59 59
 			}
60 60
 		}
61 61
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/view-details/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 			$value = esc_attr( sanitize_text_field( $value ) );
56 56
 
57 57
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
58
-				$shortcode_attributes[] = "{$attribute}={$value}";
58
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
59 59
 			}
60 60
 		}
61 61
 
Please login to merge, or discard this patch.