In second language page hangs
-
Hello,
while in main language it’s allright, when visiting posts of second language the server boils and hangs like it’s doing something very hard.
This is the part that fries my Local machine:
foreach ($languages as $code => $l) {
if (!$l['active']) {
$otherID = apply_filters('wpml_object_id', $post_ID, $type, false, $l['language_code']);
// add condition to prevent $otherID returningnull
if ($otherID) {
$othercomments = get_comments(array('post_id' => $otherID, 'status' => 'approve', 'order' => 'ASC'));
$comments = array_merge($comments, $othercomments);
}
}
}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘In second language page hangs’ is closed to new replies.