classes/PodsForm.php 1 location
|
@@ 439-440 (lines=2) @@
|
| 436 |
|
|
| 437 |
|
$attributes = array_merge( $_attributes, (array) $attributes ); |
| 438 |
|
|
| 439 |
|
if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) ) |
| 440 |
|
$attributes = array_merge( $attributes, $options[ 'attributes' ] ); |
| 441 |
|
} |
| 442 |
|
elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) ) |
| 443 |
|
$attributes = array_merge( $attributes, $options[ $type . '_attributes' ] ); |
classes/PodsMeta.php 1 location
|
@@ 1290-1291 (lines=2) @@
|
| 1287 |
|
return $post; |
| 1288 |
|
} |
| 1289 |
|
|
| 1290 |
|
if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] ) |
| 1291 |
|
$post_id = $post[ 'ID' ]; |
| 1292 |
|
|
| 1293 |
|
if ( is_array( $post_id ) || empty( $post_id ) ) |
| 1294 |
|
return $post; |