Skip to content

Commit 12fcd29

Browse files
Apply suggestion from @westonruter
Co-authored-by: Weston Ruter <[email protected]>
1 parent b53ec59 commit 12fcd29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function create_item_permissions_check( $request ) {
234234

235235
// When the client handles image processing (generate_sub_sizes is false),
236236
// skip the server-side image editor support check.
237-
if ( ! $request['generate_sub_sizes'] ) {
237+
if ( false === $request['generate_sub_sizes'] ) {
238238
$prevent_unsupported_uploads = false;
239239
}
240240

0 commit comments

Comments
 (0)