@@ 957-969 (lines=13) @@ | ||
954 | if ( empty( $group[ 'label' ] ) ) |
|
955 | $group[ 'label' ] = get_post_type_object( $post_type )->labels->label; |
|
956 | ||
957 | if ( $field_found ) { |
|
958 | $pods_field_found = true; |
|
959 | add_meta_box( |
|
960 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
961 | $group[ 'label' ], |
|
962 | array( $this, 'meta_post' ), |
|
963 | $post_type, |
|
964 | $group[ 'context' ], |
|
965 | $group[ 'priority' ], |
|
966 | array( 'group' => $group ) |
|
967 | ); |
|
968 | ||
969 | } |
|
970 | } |
|
971 | ||
972 | if ( $pods_field_found ) { |
|
@@ 2047-2057 (lines=11) @@ | ||
2044 | } |
|
2045 | } |
|
2046 | ||
2047 | if ( $field_found ) { |
|
2048 | add_meta_box( |
|
2049 | 'pods-meta-' . sanitize_title( $group[ 'label' ] ), |
|
2050 | $group[ 'label' ], |
|
2051 | array( $this, 'meta_comment' ), |
|
2052 | $comment_type, |
|
2053 | $group[ 'context' ], |
|
2054 | $group[ 'priority' ], |
|
2055 | array( 'group' => $group ) |
|
2056 | ); |
|
2057 | } |
|
2058 | } |
|
2059 | } |
|
2060 |