@@ 277-285 (lines=9) @@ | ||
274 | return get_post_meta( $this->ID, '_wp_page_template', true ); |
|
275 | } |
|
276 | ||
277 | if ( 'post_category' == $key ) { |
|
278 | if ( is_object_in_taxonomy( $this->post_type, 'category' ) ) |
|
279 | $terms = get_the_terms( $this, 'category' ); |
|
280 | ||
281 | if ( empty( $terms ) ) |
|
282 | return array(); |
|
283 | ||
284 | return wp_list_pluck( $terms, 'term_id' ); |
|
285 | } |
|
286 | ||
287 | if ( 'tags_input' == $key ) { |
|
288 | if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) ) |
|
@@ 287-295 (lines=9) @@ | ||
284 | return wp_list_pluck( $terms, 'term_id' ); |
|
285 | } |
|
286 | ||
287 | if ( 'tags_input' == $key ) { |
|
288 | if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) ) |
|
289 | $terms = get_the_terms( $this, 'post_tag' ); |
|
290 | ||
291 | if ( empty( $terms ) ) |
|
292 | return array(); |
|
293 | ||
294 | return wp_list_pluck( $terms, 'name' ); |
|
295 | } |
|
296 | ||
297 | // Rest of the values need filtering. |
|
298 | if ( 'ancestors' == $key ) |