classes/PodsMeta.php 1 location
|
@@ 1348-1349 (lines=2) @@
|
| 1345 |
|
return $post; |
| 1346 |
|
} |
| 1347 |
|
|
| 1348 |
|
if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] ) |
| 1349 |
|
$post_id = $post[ 'ID' ]; |
| 1350 |
|
|
| 1351 |
|
if ( is_array( $post_id ) || empty( $post_id ) ) |
| 1352 |
|
return $post; |
classes/PodsForm.php 1 location
|
@@ 489-490 (lines=2) @@
|
| 486 |
|
|
| 487 |
|
$attributes = array_merge( $_attributes, (array) $attributes ); |
| 488 |
|
|
| 489 |
|
if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) ) |
| 490 |
|
$attributes = array_merge( $attributes, $options[ 'attributes' ] ); |
| 491 |
|
} |
| 492 |
|
elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) ) |
| 493 |
|
$attributes = array_merge( $attributes, $options[ $type . '_attributes' ] ); |