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' ] ); |
classes/PodsMeta.php 1 location
|
@@ 1378-1379 (lines=2) @@
|
| 1375 |
|
return $post; |
| 1376 |
|
} |
| 1377 |
|
|
| 1378 |
|
if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] ) |
| 1379 |
|
$post_id = $post[ 'ID' ]; |
| 1380 |
|
|
| 1381 |
|
if ( is_array( $post_id ) || empty( $post_id ) ) |
| 1382 |
|
return $post; |