Skip to content

Commit 091d063

Browse files
authored
Merge branch 'develop' into ari/improve-security
2 parents 0b87165 + 80c7c30 commit 091d063

35 files changed

Lines changed: 138 additions & 88 deletions

assets/js/recommendations/remove-terms-without-posts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
*/
1515
constructor() {
1616
this.popoverId = 'prpl-popover-remove-terms-without-posts';
17+
18+
// Early return if the popover is not found.
19+
if ( ! document.getElementById( this.popoverId ) ) {
20+
return;
21+
}
22+
1723
this.currentTermData = null;
1824
this.currentTaskElement = null;
1925
this.elements = this.getElements();

assets/js/recommendations/update-term-description.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
*/
1515
constructor() {
1616
this.popoverId = 'prpl-popover-update-term-description';
17+
18+
// Early return if the popover is not found.
19+
if ( ! document.getElementById( this.popoverId ) ) {
20+
return;
21+
}
22+
1723
this.currentTermData = null;
1824
this.currentTaskElement = null;
1925
this.elements = this.getElements();

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.

0 commit comments

Comments
 (0)