Skip to content

Commit e003c47

Browse files
committed
Fix bad conflict resolution
I deleted too much during the rebase conflict resolution.
1 parent 084bf35 commit e003c47

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,6 +1865,16 @@ public function process_submission() {
18651865
// once insert has finished we don't need this filter any more
18661866
remove_filter( 'wp_insert_post_data', array( $plugin, 'insert_feedback_filter' ), 10 );
18671867

1868+
if ( $post_id ) {
1869+
update_post_meta( $post_id, '_feedback_extra_fields', $this->addslashes_deep( $extra_values ) );
1870+
}
1871+
1872+
if ( 'publish' === $feedback_status && $post_id ) {
1873+
// Increase count of unread feedback.
1874+
$unread = (int) get_option( 'feedback_unread_count', 0 ) + 1;
1875+
update_option( 'feedback_unread_count', $unread );
1876+
}
1877+
18681878
if ( defined( 'AKISMET_VERSION' ) && $post_id ) {
18691879
update_post_meta( $post_id, '_feedback_akismet_values', $this->addslashes_deep( $akismet_values ) );
18701880
}

0 commit comments

Comments
 (0)