We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81940d1 commit 85f62feCopy full SHA for 85f62fe
includes/class-comment.php
@@ -48,7 +48,9 @@ public static function init() {
48
*/
49
public static function map_meta_cap( $caps, $cap, $user_id, $args ) {
50
if ( 'edit_comment' === $cap && self::was_received( $args[0] ) ) {
51
- $caps[] = 'do_not_allow';
+ if ( ! \is_admin() || ( isset( $GLOBALS['current_screen'] ) && 'comment' === $GLOBALS['current_screen']->id ) ) {
52
+ $caps[] = 'do_not_allow';
53
+ }
54
}
55
56
return $caps;
0 commit comments