|
@@ 807-810 (lines=4) @@
|
| 804 |
|
|
| 805 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 806 |
|
|
| 807 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 808 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 809 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 810 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 811 |
|
|
| 812 |
|
if ( $pod[ 'type' ] != $type ) |
| 813 |
|
return array(); |
|
@@ 875-878 (lines=4) @@
|
| 872 |
|
|
| 873 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 874 |
|
|
| 875 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 876 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 877 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 878 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 879 |
|
|
| 880 |
|
if ( $pod[ 'type' ] != $type ) |
| 881 |
|
return array(); |