classes/PodsMeta.php 1 location
|
@@ 635-636 (lines=2) @@
|
| 632 |
|
|
| 633 |
|
if ( empty( $pod[ 'name' ] ) && isset( $pod[ 'object' ] ) && !empty( $pod[ 'object' ] ) ) |
| 634 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
| 635 |
|
elseif ( !isset( $pod[ 'object' ] ) || empty( $pod[ 'object' ] ) ) |
| 636 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
| 637 |
|
|
| 638 |
|
if ( empty( $pod[ 'object' ] ) ) |
| 639 |
|
return pods_error( __( 'Object required to add a Pods meta group', 'pods' ) ); |
components/Pages.php 1 location
|
@@ 122-123 (lines=2) @@
|
| 119 |
|
* @since 2.3.9 |
| 120 |
|
*/ |
| 121 |
|
public function shortcode ( $tags, $content = null ) { |
| 122 |
|
if ( !isset( $tags[ 'page' ] ) || empty( $tags[ 'page' ] ) ) |
| 123 |
|
$tags[ 'page' ] = null; |
| 124 |
|
|
| 125 |
|
$pods_page = Pods_Pages::exists( $tags[ 'page' ] ); |
| 126 |
|
|