@@ -555,7 +555,7 @@ discard block |
||
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 |
||
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 | } |
@@ -55,7 +55,7 @@ |
||
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 |
@@ -55,7 +55,7 @@ |
||
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 |
@@ -55,7 +55,7 @@ |
||
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 |