Skip to content

Commit 80474d0

Browse files
committed
update popover content & task description
1 parent 883b70e commit 80474d0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

classes/suggested-tasks/providers/class-disable-comment-pagination.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ protected function get_title() {
9999
* @return string
100100
*/
101101
protected function get_description() {
102-
return \esc_html__( 'Disable comment pagination', 'progress-planner' );
102+
/* translators: %d is the number of comments per page */
103+
return \sprintf( \esc_html__( 'When comment pagination is enabled, your site creates a new page for every %d comments. This is not helping your website in search engines, and can break up the ongoing conversation. That\'s why we recommend to disable comment pagination.', 'progress-planner' ), (int) \get_option( 'comments_per_page' ) );
103104
}
104105

105106
/**
@@ -130,7 +131,12 @@ public function is_task_completed( $task_id = '' ) {
130131
*/
131132
public function print_popover_instructions() {
132133
?>
133-
<p><?php \esc_html_e( 'Comment pagination is enabled by default. This means that comments are split into multiple pages. This can be disabled to make the comments easier to read.', 'progress-planner' ); ?></p>
134+
<p>
135+
<?php
136+
/* translators: %d is the number of comments per page */
137+
\printf( \esc_html__( 'When comment pagination is enabled, your site creates a new page for every %d comments. This is not helping your website in search engines, and can break up the ongoing conversation. That\'s why we recommend to disable comment pagination.', 'progress-planner' ), (int) \get_option( 'comments_per_page' ) );
138+
?>
139+
</p>
134140
<?php
135141
}
136142

0 commit comments

Comments
 (0)