Skip to content

Commit b9dddad

Browse files
authored
Merge pull request #681 from ProgressPlanner/ari/task-priorities
Finetune tasks priorities
2 parents 97236b6 + 7feda08 commit b9dddad

33 files changed

Lines changed: 126 additions & 88 deletions

classes/suggested-tasks/providers/class-blog-description.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Blog_Description extends Tasks_Interactive {
4545
*
4646
* @var int
4747
*/
48-
protected $priority = self::PRIORITY_NORMAL - 5;
48+
protected $priority = 2;
4949

5050
/**
5151
* Get the task title.

classes/suggested-tasks/providers/class-content-review.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Content_Review extends Tasks {
5656
*
5757
* @var int
5858
*/
59-
protected $priority = self::PRIORITY_LOW;
59+
protected $priority = 10;
6060

6161
/**
6262
* Whether the task is dismissable.

classes/suggested-tasks/providers/class-core-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Core_Update extends Tasks {
4545
*
4646
* @var int
4747
*/
48-
protected $priority = self::PRIORITY_CRITICAL;
48+
protected $priority = 20;
4949

5050
/**
5151
* Get the task URL.

classes/suggested-tasks/providers/class-debug-display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Debug_Display extends Tasks {
3838
*
3939
* @var int
4040
*/
41-
protected $priority = self::PRIORITY_CRITICAL + 5;
41+
protected $priority = 10;
4242

4343
/**
4444
* Get the task title.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ class Disable_Comment_Pagination extends Tasks_Interactive {
4040
*/
4141
protected const EXTERNAL_LINK_URL = 'https://prpl.fyi/disable-comment-pagination';
4242

43+
/**
44+
* The task priority.
45+
*
46+
* @var int
47+
*/
48+
protected $priority = 10;
49+
4350
/**
4451
* Get the task URL.
4552
*

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ class Disable_Comments extends Tasks_Interactive {
4040
*/
4141
protected const EXTERNAL_LINK_URL = 'https://prpl.fyi/disable-comments';
4242

43+
/**
44+
* The task priority.
45+
*
46+
* @var int
47+
*/
48+
protected $priority = 9;
49+
4350
/**
4451
* Get the task URL.
4552
*

classes/suggested-tasks/providers/class-email-sending.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Email_Sending extends Tasks_Interactive {
5252
*
5353
* @var int
5454
*/
55-
protected $priority = self::PRIORITY_URGENT + 1;
55+
protected $priority = 4;
5656

5757
/**
5858
* The email title.

classes/suggested-tasks/providers/class-fewer-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Fewer_Tags extends Tasks_Interactive {
4949
*
5050
* @var int
5151
*/
52-
protected $priority = self::PRIORITY_HIGH + 12;
52+
protected $priority = 32;
5353

5454
/**
5555
* The plugin active state.

classes/suggested-tasks/providers/class-hello-world.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ class Hello_World extends Tasks_Interactive {
5656
*/
5757
protected const EXTERNAL_LINK_URL = 'https://prpl.fyi/delete-hello-world-post';
5858

59+
/**
60+
* The task priority.
61+
*
62+
* @var int
63+
*/
64+
protected $priority = 15;
65+
5966
/**
6067
* Get the task URL.
6168
*

classes/suggested-tasks/providers/class-permalink-structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Permalink_Structure extends Tasks_Interactive {
4545
*
4646
* @var int
4747
*/
48-
protected $priority = self::PRIORITY_HIGH;
48+
protected $priority = 3;
4949

5050
/**
5151
* Initialize the task.

0 commit comments

Comments
 (0)