Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: wpml-comment-merging/wpml-comment-merging.php
- ===================================================================
- --- wpml-comment-merging/wpml-comment-merging.php (revision 5466)
- +++ wpml-comment-merging/wpml-comment-merging.php (working copy)
- @@ -41,7 +41,8 @@
- function merge_comment_count($count, $post_ID) {
- // get all the languages for which this post exists
- $languages = icl_get_languages('skip_missing=1');
- - $type = is_page($post_ID) ? 'page' : 'post';
- + $post = get_post( $post_ID );
- + $type = $post->post_type;
- foreach($languages as $l) {
- // in $count is already the count from the current language
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement