@@ -328,7 +328,8 @@ |
||
| 328 | 328 | } |
| 329 | 329 | if (is_array($params[0])) { |
| 330 | 330 | $this->args += $params[0]; |
| 331 | - } elseif (is_array($params[1])) { |
|
| 331 | + } |
|
| 332 | + elseif (is_array($params[1])) { |
|
| 332 | 333 | $this->args += $params[1]; |
| 333 | 334 | } |
| 334 | 335 | if (!isset($this->args['is_public'])) { |
@@ -27,7 +27,8 @@ |
||
| 27 | 27 | } |
| 28 | 28 | if ('post_id' == $attributes['assigned_to']) { |
| 29 | 29 | $attributes['assigned_to'] = $attributes['post_id']; |
| 30 | - } elseif ('parent_id' == $attributes['assigned_to']) { |
|
| 30 | + } |
|
| 31 | + elseif ('parent_id' == $attributes['assigned_to']) { |
|
| 31 | 32 | $attributes['assigned_to'] = wp_get_post_parent_id($attributes['post_id']); |
| 32 | 33 | } |
| 33 | 34 | return $attributes; |
@@ -64,7 +64,8 @@ |
||
| 64 | 64 | if ($flattenValue) { |
| 65 | 65 | $value = '['.implode(', ', $value).']'; |
| 66 | 66 | } |
| 67 | - } elseif (is_array($value)) { |
|
| 67 | + } |
|
| 68 | + elseif (is_array($value)) { |
|
| 68 | 69 | $result = array_merge($result, static::flattenArray($value, $flattenValue, $newKey)); |
| 69 | 70 | continue; |
| 70 | 71 | } |