Skip to content

Commit

Permalink
Add never return type
Browse files Browse the repository at this point in the history
  • Loading branch information
enejb committed Jul 26, 2024
1 parent d4eaaa8 commit 8655b69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/plugins/jetpack/modules/comments/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,8 @@ public function pre_comment_on_post() {
* This function exists because when we submit the form via the jetpack.wordpress.com iframe
* in Chrome the request comes in to jetpack but for some reason the request doesn't hace access to cookies yet.
* By submitting the form again locally with the same data the process works as expected.
*
* @return never
*/
public function retry_submit_comment_form_locally() {
// We are not doing any valiodation here since all the validation will be done again by pre_comment_on_post().
Expand Down

0 comments on commit 8655b69

Please sign in to comment.