@@ 1062-1065 (lines=4) @@ | ||
1059 | if ( is_object( $post ) && false === strpos( $_SERVER[ 'REQUEST_URI' ], '/post-new.php' ) ) |
|
1060 | $id = $post->ID; |
|
1061 | ||
1062 | if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) { |
|
1063 | self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
|
1064 | } elseif ( self::$current_pod->id() != $id ) { |
|
1065 | self::$current_pod->fetch( $id ); |
|
1066 | } |
|
1067 | ||
1068 | $pod = self::$current_pod; |
|
@@ 2092-2095 (lines=4) @@ | ||
2089 | if ( is_object( $comment ) ) |
|
2090 | $id = $comment->comment_ID; |
|
2091 | ||
2092 | if ( !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) |
|
2093 | self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
|
2094 | elseif ( self::$current_pod->id() != $id ) |
|
2095 | self::$current_pod->fetch( $id ); |
|
2096 | ||
2097 | $pod = self::$current_pod; |
|
2098 |