classes/PodsMeta.php 1 location
|
@@ 1347-1348 (lines=2) @@
|
| 1344 |
|
return $post; |
| 1345 |
|
} |
| 1346 |
|
|
| 1347 |
|
if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] ) |
| 1348 |
|
$post_id = $post[ 'ID' ]; |
| 1349 |
|
|
| 1350 |
|
if ( is_array( $post_id ) || empty( $post_id ) ) |
| 1351 |
|
return $post; |
classes/PodsForm.php 1 location
|
@@ 444-445 (lines=2) @@
|
| 441 |
|
|
| 442 |
|
$attributes = array_merge( $_attributes, (array) $attributes ); |
| 443 |
|
|
| 444 |
|
if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) ) |
| 445 |
|
$attributes = array_merge( $attributes, $options[ 'attributes' ] ); |
| 446 |
|
} |
| 447 |
|
elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) ) |
| 448 |
|
$attributes = array_merge( $attributes, $options[ $type . '_attributes' ] ); |