@@ 637-646 (lines=10) @@ | ||
634 | } |
|
635 | ||
636 | break; |
|
637 | case 'post_meta': |
|
638 | $post_meta = array_filter( $this->meta[ get_current_blog_id() ]['post'], array( $this, 'is_post' ) ); |
|
639 | $all_ids = array_values( array_map( array( $this, 'meta_id' ), $post_meta ) ); |
|
640 | $id_field = 'meta_id'; |
|
641 | $get_function = 'get_post_meta_by_id'; |
|
642 | ||
643 | if ( empty( $fields ) ) { |
|
644 | $fields = Defaults::$default_post_meta_checksum_columns; |
|
645 | } |
|
646 | break; |
|
647 | case 'comments': |
|
648 | $comments = $this->get_comments( null, $start_id, $end_id ); |
|
649 | $all_ids = array_map( array( $this, 'comment_id' ), $comments ); |
|
@@ 657-666 (lines=10) @@ | ||
654 | $fields = Defaults::$default_comment_checksum_columns; |
|
655 | } |
|
656 | break; |
|
657 | case 'comment_meta': |
|
658 | $comment_meta = array_filter( $this->meta[ get_current_blog_id() ]['comment'], array( $this, 'is_comment' ) ); |
|
659 | $all_ids = array_values( array_map( array( $this, 'meta_id' ), $comment_meta ) ); |
|
660 | $id_field = 'meta_id'; |
|
661 | $get_function = 'get_comment_meta_by_id'; |
|
662 | ||
663 | if ( empty( $fields ) ) { |
|
664 | $fields = Defaults::$default_comment_meta_checksum_columns; |
|
665 | } |
|
666 | break; |
|
667 | default: |
|
668 | return false; |
|
669 | } |