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 ae45ab8 commit 30b2d0cCopy full SHA for 30b2d0c
inc/rest.php
@@ -1172,7 +1172,11 @@ public static function can_move_image( WP_REST_Request $request ) {
1172
}
1173
1174
$id = $request->get_param( 'id' );
1175
- if ( ! current_user_can( 'edit_post', $id ) ) {
+
1176
+ if (
1177
+ get_post_type( $id ) !== 'attachment' ||
1178
+ ! current_user_can( 'edit_post', $id )
1179
+ ) {
1180
return false;
1181
1182
0 commit comments