-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Trash child notes when a top level note is trashed #10496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
adamsilverstein
wants to merge
22
commits into
WordPress:trunk
Choose a base branch
from
adamsilverstein:add/trash-child-notes-with-parent
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+265
−1
Open
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3912b78
Trash child notes when a top level note is trashed
adamsilverstein 05e669f
Add tests for child note deletion
adamsilverstein edfe396
phpcbf
adamsilverstein 67014be
Merge branch 'trunk' into add/trash-child-notes-with-parent
adamsilverstein 6f09761
Update src/wp-includes/comment.php
adamsilverstein f0d2076
Update src/wp-includes/comment.php
adamsilverstein d6cf076
Check child deletion with both ‘0’ and ‘1’ statuses
adamsilverstein 4c0cc8a
Include all decendents, return success status
adamsilverstein f5c64ba
Delete descendent notes immediately when EMPTY_TRASH_DAYS is 0
adamsilverstein d30b1bb
phpcbf
adamsilverstein 5aa9e22
Inline descendent deletion/trash handling
adamsilverstein fc017d8
Test wp_trash_comment deletes a note and it's descendants when EMPTY_…
adamsilverstein dcb4fa3
Test that all descendants including grandchildren are trashed
adamsilverstein baaf885
phpcbf
adamsilverstein 5e30cb3
enable setting EMPTY_TRASH_DAYS
adamsilverstein 85e04ee
remove test_wp_delete_comment_deletes_descendants_when_empty_trash_da…
adamsilverstein e09bfd8
remove grandchildren test
adamsilverstein 4b44a79
Cleanup
adamsilverstein 5800263
Update tests/phpunit/tests/comment.php
adamsilverstein cef8390
Merge branch 'trunk' into add/trash-child-notes-with-parent
adamsilverstein a14f848
Return early if wp_delete_comment fails
adamsilverstein b9c878c
No need to set success, already true here
adamsilverstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.