Skip to content

Commit 4ae8c8a

Browse files
committed
add link
1 parent 80474d0 commit 4ae8c8a

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ protected function get_title() {
9999
* @return string
100100
*/
101101
protected function get_description() {
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' ) );
102+
return \sprintf(
103+
/* translators: %d is the number of comments per page, %s is the "recommend to disable comment pagination" link */
104+
\esc_html__( 'When comment pagination is enabled, your site creates a new page for every %1$d comments. This is not helping your website in search engines, and can break up the ongoing conversation. That\'s why we %2$s.', 'progress-planner' ),
105+
(int) \get_option( 'comments_per_page' ),
106+
'<a href="https://prpl.fyi/disable-comment-pagination" target="_blank">' . \esc_html__( 'recommend to disable comment pagination', 'progress-planner' ) . '</a>'
107+
);
104108
}
105109

106110
/**
@@ -133,8 +137,12 @@ public function print_popover_instructions() {
133137
?>
134138
<p>
135139
<?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' ) );
140+
\printf(
141+
/* translators: %d is the number of comments per page, %s is the "recommend to disable comment pagination" link */
142+
\esc_html__( 'When comment pagination is enabled, your site creates a new page for every %1$d comments. This is not helping your website in search engines, and can break up the ongoing conversation. That\'s why we %2$s.', 'progress-planner' ),
143+
(int) \get_option( 'comments_per_page' ),
144+
'<a href="https://prpl.fyi/disable-comment-pagination" target="_blank">' . \esc_html__( 'recommend to disable comment pagination', 'progress-planner' ) . '</a>'
145+
);
138146
?>
139147
</p>
140148
<?php

0 commit comments

Comments
 (0)