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
|
@@ 704-705 (lines=2) @@
|
701 |
|
|
702 |
|
if ( empty( $pod[ 'name' ] ) && isset( $pod[ 'object' ] ) && !empty( $pod[ 'object' ] ) ) |
703 |
|
$pod[ 'name' ] = $pod[ 'object' ]; |
704 |
|
elseif ( !isset( $pod[ 'object' ] ) || empty( $pod[ 'object' ] ) ) |
705 |
|
$pod[ 'object' ] = $pod[ 'name' ]; |
706 |
|
|
707 |
|
if ( empty( $pod[ 'object' ] ) ) |
708 |
|
return pods_error( __( 'Object required to add a Pods meta group', 'pods' ) ); |