Skip to content

Commit 85f62fe

Browse files
authored
Comments: Allow quick links for federated comments in comment list (#1910)
Props @pfefferle.
1 parent 81940d1 commit 85f62fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

includes/class-comment.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public static function init() {
4848
*/
4949
public static function map_meta_cap( $caps, $cap, $user_id, $args ) {
5050
if ( 'edit_comment' === $cap && self::was_received( $args[0] ) ) {
51-
$caps[] = 'do_not_allow';
51+
if ( ! \is_admin() || ( isset( $GLOBALS['current_screen'] ) && 'comment' === $GLOBALS['current_screen']->id ) ) {
52+
$caps[] = 'do_not_allow';
53+
}
5254
}
5355

5456
return $caps;

0 commit comments

Comments
 (0)