回答編集履歴
1
不要部分削除
answer
CHANGED
@@ -15,11 +15,9 @@
|
|
15
15
|
ページングもおかしくなっていると思うので、こちらも
|
16
16
|
|
17
17
|
add_filter( 'get_comments_pagenum_link', function( $result ){
|
18
|
-
if ( is_home() ) {
|
19
18
|
if (preg_match( '{(.?.+?)/?cpage=-([0-9]{1,})/}', $result, $m)) {
|
20
19
|
$result = $m[1] . '/?cpage=' . $m[2];
|
21
20
|
return $result;
|
22
21
|
}
|
23
|
-
}
|
24
22
|
return $result;
|
25
23
|
}, 10, 2);
|