classes/PodsMeta.php 1 location
|
@@ 667-668 (lines=2) @@
|
| 664 |
|
|
| 665 |
|
if ( empty( $pod[ 'name' ] ) && isset( $pod[ 'object' ] ) && !empty( $pod[ 'object' ] ) ) |
| 666 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 667 |
|
elseif ( !isset( $pod[ 'object' ] ) || empty( $pod[ 'object' ] ) ) |
| 668 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 669 |
|
|
| 670 |
|
if ( empty( $pod[ 'object' ] ) ) |
| 671 |
|
return pods_error( __( 'Object required to add a Pods meta group', 'pods' ) ); |
components/Pages.php 1 location
|
@@ 163-164 (lines=2) @@
|
| 160 |
|
*/ |
| 161 |
|
public function shortcode( $tags, $content = null ) { |
| 162 |
|
|
| 163 |
|
if ( ! isset( $tags['page'] ) || empty( $tags['page'] ) ) { |
| 164 |
|
$tags['page'] = null; |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
$pods_page = self::exists( $tags['page'] ); |