@@ 1010-1013 (lines=4) @@ | ||
1007 | if ( is_object( $post ) && false === strpos( $_SERVER[ 'REQUEST_URI' ], '/post-new.php' ) ) |
|
1008 | $id = $post->ID; |
|
1009 | ||
1010 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) { |
|
1011 | self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
|
1012 | } elseif ( self::$current_pod->id() != $id ) { |
|
1013 | self::$current_pod->fetch( $id ); |
|
1014 | } |
|
1015 | ||
1016 | $pod = self::$current_pod; |
|
@@ 2081-2084 (lines=4) @@ | ||
2078 | if ( is_object( $comment ) ) |
|
2079 | $id = $comment->comment_ID; |
|
2080 | ||
2081 | if ( !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) |
|
2082 | self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
|
2083 | elseif ( self::$current_pod->id() != $id ) |
|
2084 | self::$current_pod->fetch( $id ); |
|
2085 | ||
2086 | $pod = self::$current_pod; |
|
2087 |