wordpress-develop/tests/phpunit/tests/comment
Gary Pendergast 9dfde992ee Comments: Show the "awaiting moderation" message when comment cookies are disabled.
The "Your comment is awaiting moderation." message relied upon the comment author cookie being set. However, since it's now possible to opt-out of that cookie, submitting a comment won't show the comment preview when the comment is placed in moderation.

To avoid this issue, we now include a hash in the redirect URL, allowing the site to identify that a preview of the moderated comment should be displayed.

Props imath, tomdxw, birgire, lakenh, azaozz, pento.
Fixes #43857.



git-svn-id: https://develop.svn.wordpress.org/trunk@44659 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-21 01:33:50 +00:00
..
checkComment.php Code is Poetry. 2017-11-30 23:09:33 +00:00
commentForm.php Privacy: Revert [43525]. 2018-07-24 17:05:56 +00:00
commentsTemplate.php Comments: Show the "awaiting moderation" message when comment cookies are disabled. 2019-01-21 01:33:50 +00:00
dateQuery.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getCommentAuthorEmailLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentAuthorUrl.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentAuthorUrlLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentClass.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getCommentCount.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentExcerpt.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentReplyLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getCommentsPagesCount.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPageOfComment.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
isAvatarCommentType.php Comments: Add new tests missed in [44499]. 2019-01-09 06:19:53 +00:00
lastCommentModified.php Code is Poetry. 2017-11-30 23:09:33 +00:00
metaCache.php REST API: Move object type-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2018-12-12 03:02:00 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
template.php Code is Poetry. 2017-11-30 23:09:33 +00:00
walker.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpAllowComment.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpBlacklistCheck.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpComment.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpCountComments.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpListComments.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpUpdateCommentCountNow.php Correct usage of Covers for Tests_Update_Comment_Count_Now 2016-05-17 20:19:50 +00:00