Commit 0ccf3fe
committed
Add get_post_types_to_hide_comments_for method to Comment class.
This method returns post types whose comments should be hidden in the
WordPress admin. Used for filtering comment queries and auto-approving
comments on non-public post types like ap_post.1 parent 7c51303 commit 0ccf3fe
File tree
3 files changed
+43
-11
lines changed- .github/changelog
- includes
- tests/phpunit/tests/includes
3 files changed
+43
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
704 | 703 | | |
705 | 704 | | |
706 | 705 | | |
707 | | - | |
708 | | - | |
709 | | - | |
| 706 | + | |
710 | 707 | | |
711 | 708 | | |
712 | 709 | | |
| |||
767 | 764 | | |
768 | 765 | | |
769 | 766 | | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
| 767 | + | |
| 768 | + | |
774 | 769 | | |
775 | | - | |
776 | | - | |
777 | | - | |
| 770 | + | |
| 771 | + | |
778 | 772 | | |
779 | 773 | | |
780 | 774 | | |
| |||
827 | 821 | | |
828 | 822 | | |
829 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
830 | 843 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
992 | 993 | | |
993 | 994 | | |
994 | 995 | | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
995 | 1010 | | |
996 | 1011 | | |
997 | 1012 | | |
| |||
0 commit comments