|
@@ 2006-2009 (lines=4) @@
|
| 2003 |
|
if ( is_object( $comment ) ) |
| 2004 |
|
$id = $comment->comment_ID; |
| 2005 |
|
|
| 2006 |
|
if ( !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) |
| 2007 |
|
self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
| 2008 |
|
elseif ( self::$current_pod->id() != $id ) |
| 2009 |
|
self::$current_pod->fetch( $id ); |
| 2010 |
|
|
| 2011 |
|
$pod = self::$current_pod; |
| 2012 |
|
|
|
@@ 993-996 (lines=4) @@
|
| 990 |
|
if ( is_object( $post ) && false === strpos( $_SERVER[ 'REQUEST_URI' ], '/post-new.php' ) ) |
| 991 |
|
$id = $post->ID; |
| 992 |
|
|
| 993 |
|
if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) { |
| 994 |
|
self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
| 995 |
|
} elseif ( self::$current_pod->id() != $id ) { |
| 996 |
|
self::$current_pod->fetch( $id ); |
| 997 |
|
} |
| 998 |
|
|
| 999 |
|
$pod = self::$current_pod; |