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 |
|
|
classes/PodsMeta.php 1 location
|
@@ 652-653 (lines=2) @@
|
649 |
|
|
650 |
|
if ( empty( $pod[ 'name' ] ) && isset( $pod[ 'object' ] ) && !empty( $pod[ 'object' ] ) ) |
651 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
652 |
|
elseif ( !isset( $pod[ 'object' ] ) || empty( $pod[ 'object' ] ) ) |
653 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
654 |
|
|
655 |
|
if ( empty( $pod[ 'object' ] ) ) |
656 |
|
return pods_error( __( 'Object required to add a Pods meta group', 'pods' ) ); |