| @@ -125,15 +125,24 @@ | ||
| 125 | 125 | ] |
| 126 | 126 | ); |
| 127 | 127 | |
| 128 | 128 | $active_breakpoint_keys = array_reverse( array_keys( Plugin::$instance->breakpoints->get_active_breakpoints() ) ); |
| 129 | - $inline_size_device_args = []; | |
| 129 | + $inline_size_device_args = [ | |
| 130 | + Breakpoints_Manager::BREAKPOINT_KEY_MOBILE => [ 'placeholder' => 100 ], | |
| 131 | + ]; | |
| 130 | 132 | |
| 131 | 133 | foreach ( $active_breakpoint_keys as $breakpoint_key ) { |
| 132 | - $inline_size_device_args[ $breakpoint_key ] = [ | |
| 133 | - 'max' => 100, | |
| 134 | - 'required' => false, | |
| 135 | - ]; | |
| 134 | + if ( ! isset( $inline_size_device_args[ $breakpoint_key ] ) ) { | |
| 135 | + $inline_size_device_args[ $breakpoint_key ] = []; | |
| 136 | + } | |
| 137 | + | |
| 138 | + $inline_size_device_args[ $breakpoint_key ] = array_merge_recursive( | |
| 139 | + $inline_size_device_args[ $breakpoint_key ], | |
| 140 | + [ | |
| 141 | + 'max' => 100, | |
| 142 | + 'required' => false, | |
| 143 | + ] | |
| 144 | + ); | |
| 136 | 145 | } |
| 137 | 146 | |
| 138 | 147 | if ( in_array( Breakpoints_Manager::BREAKPOINT_KEY_MOBILE_EXTRA, $active_breakpoint_keys, true ) ) { |
| 139 | 148 | $min_affected_device_value = Breakpoints_Manager::BREAKPOINT_KEY_MOBILE_EXTRA; |