classes/PodsForm.php 1 location
|
@@ 440-441 (lines=2) @@
|
| 437 |
|
|
| 438 |
|
$attributes = array_merge( $_attributes, (array) $attributes ); |
| 439 |
|
|
| 440 |
|
if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) ) |
| 441 |
|
$attributes = array_merge( $attributes, $options[ 'attributes' ] ); |
| 442 |
|
} |
| 443 |
|
elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) ) |
| 444 |
|
$attributes = array_merge( $attributes, $options[ $type . '_attributes' ] ); |
classes/PodsMeta.php 1 location
|
@@ 1384-1385 (lines=2) @@
|
| 1381 |
|
return $post; |
| 1382 |
|
} |
| 1383 |
|
|
| 1384 |
|
if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] ) |
| 1385 |
|
$post_id = $post[ 'ID' ]; |
| 1386 |
|
|
| 1387 |
|
if ( is_array( $post_id ) || empty( $post_id ) ) |
| 1388 |
|
return $post; |