Skip to content

Commit 83a5aeb

Browse files
committed
update task links
1 parent 11cf315 commit 83a5aeb

6 files changed

Lines changed: 27 additions & 12 deletions

File tree

classes/suggested-tasks/local-tasks/providers/one-time/class-disable-comments.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,16 @@ public function get_task_details( $task_id = '' ) {
7676
'dismissable' => true,
7777
'description' => '<p>' . sprintf(
7878
\esc_html(
79-
// translators: %d is the number of approved comments.
79+
// translators: %d is the number of approved comments, %s is the <a href="https://prpl.fyi/disable-comments" target="_blank">disabling them</a> link.
8080
\_n(
81-
'There is %d comment. If you don\'t need comments on your site, consider disabling them.',
82-
'There are %d comments. If you don\'t need comments on your site, consider disabling them.',
81+
'There is %1$d comment. If you don\'t need comments on your site, consider %2$s.',
82+
'There are %1$d comments. If you don\'t need comments on your site, consider %2$s.',
8383
(int) \wp_count_comments()->approved,
8484
'progress-planner'
8585
)
8686
),
87-
(int) \wp_count_comments()->approved
87+
(int) \wp_count_comments()->approved,
88+
'<a href="https://prpl.fyi/disable-comments" target="_blank">' . \esc_html__( 'disabling them', 'progress-planner' ) . '</a>',
8889
) . '</p>',
8990
'link_setting' => [
9091
'hook' => 'options-discussion.php',

classes/suggested-tasks/local-tasks/providers/one-time/class-permalink-structure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public function get_task_details( $task_id = '' ) {
6666
'points' => 1,
6767
'url' => $this->capability_required() ? \esc_url( admin_url( 'options-permalink.php' ) ) : '',
6868
'description' => '<p>' . sprintf(
69-
/* translators: %1$s <a href="https://prpl.fyi/" target="_blank">We recommend</a> link */
69+
/* translators: %1$s <a href="https://prpl.fyi/change-default-permalink-structure" target="_blank">We recommend</a> link */
7070
\esc_html__( 'On install, WordPress sets the permalink structure to a format that is not SEO-friendly. %1$s changing it.', 'progress-planner' ),
71-
'<a href="https://prpl.fyi/" target="_blank">' . \esc_html__( 'We recommend', 'progress-planner' ) . '</a>',
71+
'<a href="https://prpl.fyi/change-default-permalink-structure" target="_blank">' . \esc_html__( 'We recommend', 'progress-planner' ) . '</a>',
7272
) . '</p>',
7373
'link_setting' => [
7474
'hook' => 'options-permalink.php',

classes/suggested-tasks/local-tasks/providers/one-time/class-php-version.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ public function get_task_details( $task_id = '' ) {
6363
'type' => $this->get_provider_type(),
6464
'points' => 1,
6565
'description' => '<p>' . sprintf(
66-
/* translators: %s: php version */
67-
\esc_html__( 'Your site is running on PHP version %s. We recommend updating to PHP version 8.0 or higher.', 'progress-planner' ),
68-
phpversion()
66+
/* translators: %1$s: php version, %2$s: <a href="https://prpl.fyi/update-php-version" target="_blank">We recommend</a> link */
67+
\esc_html__( 'Your site is running on PHP version %1$s. %2$s updating to PHP version 8.0 or higher.', 'progress-planner' ),
68+
phpversion(),
69+
'<a href="https://prpl.fyi/update-php-version" target="_blank">' . \esc_html__( 'We recommend', 'progress-planner' ) . '</a>',
6970
) . '</p>',
7071
];
7172
}

classes/suggested-tasks/local-tasks/providers/one-time/class-remove-inactive-plugins.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ public function get_task_details( $task_id = '' ) {
8080
'points' => 1,
8181
'url' => '',
8282
'dismissible' => true,
83-
'description' => '<p>' . \esc_html__( 'You have inactive plugins. Consider removing any plugins that are not activated to free up resources, and improve security.', 'progress-planner' ) . '</p>',
83+
'description' => '<p>' . sprintf(
84+
/* translators: %1$s <a href="https://prpl.fyi/remove-inactive-plugins" target="_blank">removing any plugins</a> link */
85+
\esc_html__( 'You have inactive plugins. Consider %1$s that are not activated to free up resources, and improve security.', 'progress-planner' ),
86+
'<a href="https://prpl.fyi/remove-inactive-plugins" target="_blank">' . \esc_html__( 'removing any plugins', 'progress-planner' ) . '</a>',
87+
) . '</p>',
8488
];
8589
}
8690
}

classes/suggested-tasks/local-tasks/providers/one-time/class-rename-uncategorized-category.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ public function get_task_details( $task_id = '' ) {
9898
'type' => $this->get_provider_type(),
9999
'points' => 1,
100100
'url' => $this->capability_required() ? \esc_url( \admin_url( 'edit-tags.php?taxonomy=category&post_type=post' ) ) : '',
101-
'description' => '<p>' . \esc_html__( 'The Uncategorized category is used for posts that don\'t have a category. We recommend renaming it to something that fits your site better.', 'progress-planner' ) . '</p>',
101+
'description' => '<p>' . sprintf(
102+
/* translators: %1$s <a href="https://prpl.fyi/change-default-permalink-structure" target="_blank">We recommend</a> link */
103+
\esc_html__( 'The Uncategorized category is used for posts that don\'t have a category. %1$s renaming it to something that fits your site better.', 'progress-planner' ),
104+
'<a href="https://prpl.fyi/change-default-permalink-structure" target="_blank">' . \esc_html__( 'We recommend', 'progress-planner' ) . '</a>',
105+
) . '</p>',
106+
102107
];
103108
}
104109
}

classes/suggested-tasks/local-tasks/providers/one-time/class-search-engine-visibility.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ public function get_task_details( $task_id = '' ) {
6464
'points' => 1,
6565
'url' => $this->capability_required() ? \esc_url( \admin_url( 'options-reading.php' ) ) : '',
6666
'dismissible' => true,
67-
'description' => '<p>' . \esc_html__( 'Your site is not currently visible to search engines. Consider allowing search engines to index your site.', 'progress-planner' ) . '</p>',
67+
'description' => '<p>' . sprintf(
68+
/* translators: %1$s <a href="https://prpl.fyi/blog-indexing-settings" target="_blank">allowing search engines</a> link */
69+
\esc_html__( 'Your site is not currently visible to search engines. Consider %1$s to index your site.', 'progress-planner' ),
70+
'<a href="https://prpl.fyi/blog-indexing-settings" target="_blank">' . \esc_html__( 'allowing search engines', 'progress-planner' ) . '</a>',
71+
) . '</p>',
6872
'link_setting' => [
6973
'hook' => 'options-reading.php',
7074
'iconEl' => 'label[for="blog_public"]',

0 commit comments

Comments
 (0)