Skip to content

Commit 24f0507

Browse files
authored
Merge pull request #492 from ProgressPlanner/filip/v15/fix-detect-new-content
2 parents c8e0d1e + 30175a2 commit 24f0507

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Bugs we fixed:
44

55
* Don't redirect user to Progress Planner dashboard if 'redirect_to' GET or POST parameter is set.
6+
* Fixed detecting creation of new valuable content posts.
67

78
= 1.4.2 =
89

classes/suggested-tasks/data-collector/class-last-published-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Last_Published_Post extends Base_Data_Collector {
3434
* @return void
3535
*/
3636
public function init() {
37-
\add_action( 'init', [ $this, 'set_include_post_types' ], 99 ); // Wait for all CPTs to be registered.
37+
\add_action( 'init', [ $this, 'set_include_post_types' ], 100 ); // Wait for all CPTs to be registered and collector manager to trigger it's init method (which is done on priority 99).
3838
\add_action( 'transition_post_status', [ $this, 'update_last_published_post_cache' ], 10, 3 );
3939
}
4040

0 commit comments

Comments
 (0)