Skip to content

Commit 1c25f4a

Browse files
committed
Description improvement
1 parent 7835bf2 commit 1c25f4a

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

classes/suggested-tasks/providers/class-disable-comments.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ public function print_popover_instructions() {
115115

116116
echo '<p>';
117117
if ( 0 === $comments_count ) {
118-
\esc_html_e( 'Your site currently has no approved comments. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments. If your site really doesn\'t need any comments, we recommend installing the "Comment-Free Zone" plugin.', 'progress-planner' );
118+
\esc_html_e( 'Your site currently has no approved comments. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments.', 'progress-planner' );
119119
} else {
120120
printf(
121121
\esc_html(
122122
// translators: %d is the number of approved comments.
123123
\_n(
124-
'Your site currently has %d approved comment. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments. If your site really doesn\'t need any comments, we recommend installing the "Comment-Free Zone" plugin.',
125-
'Your site currently has %d approved comments. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments. If your site really doesn\'t need any comments, we recommend installing the "Comment-Free Zone" plugin.',
124+
'Your site currently has %d approved comment. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments.',
125+
'Your site currently has %d approved comments. Therefore, it seems your site might not need comments. If that is true for most posts or pages on your site, you can use WordPress\'s default setting to disable comments.',
126126
$comments_count,
127127
'progress-planner'
128128
)
@@ -131,6 +131,15 @@ public function print_popover_instructions() {
131131
);
132132
}
133133
echo '</p>';
134+
if ( ! \is_multisite() && \current_user_can( 'install_plugins' ) ) {
135+
echo '<p>';
136+
\printf(
137+
/* translators: %s is the <a href="https://w.org/plugins/comment-free-zone/" target="_blank">Comment-Free Zone</a> link */
138+
\esc_html__( 'If your site really doesn\'t need any comments, we recommend installing the "%s" plugin.', 'progress-planner' ),
139+
'<a href="https://w.org/plugins/comment-free-zone/" target="_blank">' . \esc_html__( 'Comment-Free Zone', 'progress-planner' ) . '</a>'
140+
);
141+
echo '</p>';
142+
}
134143
}
135144

136145
/**

0 commit comments

Comments
 (0)