| @@ 1009-1021 (lines=13) @@ | ||
| 1006 | if ( empty( $group[ 'label' ] ) ) |
|
| 1007 | $group[ 'label' ] = get_post_type_object( $post_type )->labels->label; |
|
| 1008 | ||
| 1009 | if ( $field_found ) { |
|
| 1010 | $pods_field_found = true; |
|
| 1011 | add_meta_box( |
|
| 1012 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
| 1013 | $group[ 'label' ], |
|
| 1014 | array( $this, 'meta_post' ), |
|
| 1015 | $post_type, |
|
| 1016 | $group[ 'context' ], |
|
| 1017 | $group[ 'priority' ], |
|
| 1018 | array( 'group' => $group ) |
|
| 1019 | ); |
|
| 1020 | ||
| 1021 | } |
|
| 1022 | } |
|
| 1023 | ||
| 1024 | if ( $pods_field_found ) { |
|
| @@ 2058-2068 (lines=11) @@ | ||
| 2055 | } |
|
| 2056 | } |
|
| 2057 | ||
| 2058 | if ( $field_found ) { |
|
| 2059 | add_meta_box( |
|
| 2060 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
| 2061 | $group[ 'label' ], |
|
| 2062 | array( $this, 'meta_comment' ), |
|
| 2063 | $comment_type, |
|
| 2064 | $group[ 'context' ], |
|
| 2065 | $group[ 'priority' ], |
|
| 2066 | array( 'group' => $group ) |
|
| 2067 | ); |
|
| 2068 | } |
|
| 2069 | } |
|
| 2070 | } |
|
| 2071 | ||