@@ 925-937 (lines=13) @@ | ||
922 | if ( empty( $group[ 'label' ] ) ) |
|
923 | $group[ 'label' ] = get_post_type_object( $post_type )->labels->label; |
|
924 | ||
925 | if ( $field_found ) { |
|
926 | $pods_field_found = true; |
|
927 | add_meta_box( |
|
928 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
929 | $group[ 'label' ], |
|
930 | array( $this, 'meta_post' ), |
|
931 | $post_type, |
|
932 | $group[ 'context' ], |
|
933 | $group[ 'priority' ], |
|
934 | array( 'group' => $group ) |
|
935 | ); |
|
936 | ||
937 | } |
|
938 | } |
|
939 | ||
940 | if ( $pods_field_found ) { |
|
@@ 1935-1945 (lines=11) @@ | ||
1932 | } |
|
1933 | } |
|
1934 | ||
1935 | if ( $field_found ) { |
|
1936 | add_meta_box( |
|
1937 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
1938 | $group[ 'label' ], |
|
1939 | array( $this, 'meta_comment' ), |
|
1940 | $comment_type, |
|
1941 | $group[ 'context' ], |
|
1942 | $group[ 'priority' ], |
|
1943 | array( 'group' => $group ) |
|
1944 | ); |
|
1945 | } |
|
1946 | } |
|
1947 | } |
|
1948 |