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
|
@@ 145-146 (lines=2) @@
|
| 142 |
|
* @since 2.3.9 |
| 143 |
|
*/ |
| 144 |
|
public function shortcode ( $tags, $content = null ) { |
| 145 |
|
if ( !isset( $tags[ 'page' ] ) || empty( $tags[ 'page' ] ) ) |
| 146 |
|
$tags[ 'page' ] = null; |
| 147 |
|
|
| 148 |
|
$pods_page = Pods_Pages::exists( $tags[ 'page' ] ); |
| 149 |
|
|