|
@@ 786-789 (lines=4) @@
|
| 783 |
|
|
| 784 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 785 |
|
|
| 786 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 787 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 788 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 789 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 790 |
|
|
| 791 |
|
if ( $pod[ 'type' ] != $type ) |
| 792 |
|
return array(); |
|
@@ 852-855 (lines=4) @@
|
| 849 |
|
|
| 850 |
|
$pod = array_merge( $defaults, (array) $pod ); |
| 851 |
|
|
| 852 |
|
if ( empty( $pod[ 'name' ] ) ) |
| 853 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 854 |
|
elseif ( empty( $pod[ 'object' ] ) ) |
| 855 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 856 |
|
|
| 857 |
|
if ( $pod[ 'type' ] != $type ) |
| 858 |
|
return array(); |