Commit be6a610
committed
Editor: fix contributor "Slow down" message when updating Notes quickly.
Fix an issue where contributors’ notes edits were throttled. Notes are internal and from trusted users, they do not need throttling.
Skip calling wp_allow_comment for notes in WP_REST_Comments_Controller::create_item. As a result the pre_comment_approved hook is also not fired for notes.
Fixes WordPress/gutenberg#72892 where the issue was originally reported.
Props adamsilverstein, desrosj, wildworks, mamaduka.
Fixes #64199.
git-svn-id: https://develop.svn.wordpress.org/trunk@61144 602fd350-edb4-49c9-b593-d223f7449a821 parent e1b474c commit be6a610
File tree
2 files changed
+5
-6
lines changed- src/wp-includes
- rest-api/endpoints
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | 717 | | |
723 | 718 | | |
724 | 719 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
718 | 722 | | |
719 | 723 | | |
720 | 724 | | |
| |||
0 commit comments