Skip to content

Commit 7da12f0

Browse files
committed
Update the option name
1 parent ea73e41 commit 7da12f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/packages/forms/src/contact-form/class-contact-form-plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ public function unread_count() {
14771477
* @return int The count of unread feedback entries.
14781478
*/
14791479
public static function get_unread_count() {
1480-
return (int) get_option( 'feedback_unread_count_v2', 0 );
1480+
return (int) get_option( 'jetpack_feedback_unread_count', 0 ); // previously defaulted named "feedback_unread_count".
14811481
}
14821482

14831483
/**
@@ -1489,7 +1489,7 @@ public static function get_unread_count() {
14891489
*/
14901490
public static function recalculate_unread_count() {
14911491
$count = Feedback::get_unread_count();
1492-
update_option( 'feedback_unread_count_v2', $count );
1492+
update_option( 'jetpack_feedback_unread_count', $count );
14931493
return $count;
14941494
}
14951495

0 commit comments

Comments
 (0)