|
@@ 976-979 (lines=4) @@
|
| 973 |
|
if ( is_object( $post ) && false === strpos( $_SERVER[ 'REQUEST_URI' ], '/post-new.php' ) ) |
| 974 |
|
$id = $post->ID; |
| 975 |
|
|
| 976 |
|
if ( empty( self::$current_pod_data ) || !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) |
| 977 |
|
self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
| 978 |
|
elseif ( self::$current_pod->id() != $id ) |
| 979 |
|
self::$current_pod->fetch( $id ); |
| 980 |
|
|
| 981 |
|
$pod = self::$current_pod; |
| 982 |
|
|
|
@@ 1963-1966 (lines=4) @@
|
| 1960 |
|
if ( is_object( $comment ) ) |
| 1961 |
|
$id = $comment->comment_ID; |
| 1962 |
|
|
| 1963 |
|
if ( !is_object( self::$current_pod ) || self::$current_pod->pod != $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ] ) |
| 1964 |
|
self::$current_pod = pods( $metabox[ 'args' ][ 'group' ][ 'pod' ][ 'name' ], $id, true ); |
| 1965 |
|
elseif ( self::$current_pod->id() != $id ) |
| 1966 |
|
self::$current_pod->fetch( $id ); |
| 1967 |
|
|
| 1968 |
|
$pod = self::$current_pod; |
| 1969 |
|
|