Skip to content

Commit e8246a7

Browse files
Apply suggestion from @westonruter
Co-authored-by: Weston Ruter <[email protected]>
1 parent 304570e commit e8246a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4224,7 +4224,7 @@ function wp_create_initial_comment_meta() {
42244224
),
42254225
),
42264226
),
4227-
'auth_callback' => function ( $allowed, $meta_key, $object_id ) {
4227+
'auth_callback' => static function ( $allowed, $meta_key, $object_id ) {
42284228
return current_user_can( 'edit_comment', $object_id );
42294229
},
42304230
)

0 commit comments

Comments
 (0)