|
@@ 790-793 (lines=4) @@
|
| 787 |
|
|
| 788 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 789 |
|
|
| 790 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 791 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 792 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 793 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 794 |
|
|
| 795 |
|
if ( $pod[ 'type' ] != $type ) |
| 796 |
|
return array(); |
|
@@ 858-861 (lines=4) @@
|
| 855 |
|
|
| 856 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 857 |
|
|
| 858 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 859 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 860 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 861 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 862 |
|
|
| 863 |
|
if ( $pod[ 'type' ] != $type ) |
| 864 |
|
return array(); |