#54902 closed defect (bug) (fixed)
Media Library Overlay Drag-and-Drop To Reorder Images Does Not Work In WP 5.9
Reported by: | linux4me2 | Owned by: | Clorith |
---|---|---|---|
Milestone: | 5.9.1 | Priority: | normal |
Severity: | major | Version: | 5.9 |
Component: | External Libraries | Keywords: | has-testing-info has-patch fixed-major |
Focuses: | javascript | Cc: |
Description
The drag-and-drop functionality in WP media library overlay (dialog box) to reorder images doesn't work in WP 5.9, but it did in WP 5.8.x.
To reproduce the issue:
- In WP 5.9, create a new Gallery Block in a post using more than one image.
- Use the List View to select the Gallery
- Click the Media Library link to open the Add to Gallery dialog box
- Click the Edit Gallery link
- Try to drag-and-drop an image to reorder it in the gallery
In WP 5.8.x, it was possible to reorder the images with drag-and-drop while editing a gallery. There are workarounds using the List View and the arrows on the toolbar for editing individual images in a post, but the ability to drag-and-drop in "Edit Gallery" is a desired feature.
Change History (36)
#3
@
3 years ago
- Component changed from Media to External Libraries
- Focuses javascript added
This is caused by a regression in the jQuery UI Sortable library, a fix has been released for the library, and will be included in the upcoming release of WordPress 5.9.1
#5
@
3 years ago
On that note, this is the JS error I get when trying to move gallery images via Edit Gallery:
media-views.min.js?ver=5.9:2 Uncaught TypeError: Cannot read properties of undefined (reading 'args') at n.<anonymous> (media-views.min.js?ver=5.9:2:23305) at u (underscore.min.js?ver=1.13.1:2:16433)
This ticket was mentioned in PR #2238 on WordPress/wordpress-develop by Clorith.
3 years ago
#12
- Keywords has-patch added
This PR updates the bundled files form jQuery UI from version 1.13.0 to 1.13.1
Version 1.13.1 contains fixes for regressions in jQuery compatibility introduced wit hthe 1.13.0 release, as well as some code-styling cleanup (indentation-related for readability).
See the release post at https://blog.jqueryui.com/2022/01/jquery-ui-1-13-1-released/
See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1
Trac ticket: https://core.trac.wordpress.org/ticket/54902
#15
@
3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 5.9.1 backport.
#16
@
3 years ago
After elementor and World Press upgrade the Astra gallery drag and drop to reorder images no longer works!!!
#17
@
3 years ago
- Severity changed from normal to major
hi all,
same problem, same consequence.
Do not enable automatic WordPress updates... ;(
Regards
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
3 years ago
#23
@
3 years ago
- Resolution set to fixed
- Status changed from reopened to closed
This was merged to the 5.9 branch in [52665] but the commit didn't get linked to the ticket
In 52665
External libraries: Update jQuery UI to 1.13.1
Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules.
See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1
Props blogaid, linux4me2, mgol, Clorith.
Merges [52648] to the 5.9 branch.
Fixes #54902.
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
3 years ago
#28
follow-up:
↓ 32
@
3 years ago
This is a strange bug but here is a method that works. When you first click on the gallery window that brings up the screen of your images to reorder, make sure you don't select an image (no blue selection border around the image), and left click and hold at the top of the image border. This should let you reorder the images through drag and drop.
#32
in reply to:
↑ 28
@
3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to potatopizza:
This is a strange bug, looks to be a layering issue. Here is a method that works. When you first click on the gallery window that brings up the screen of your images to reorder, make sure you don't select an image (no blue selection border around the image), and left click and hold at the top of the image border. This should let you grab the image and reorder them through drag and drop.
would you be able to show us how you do it on video (screenshot) ? I tried to reproduce it but without success
#33
@
3 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Closing this ticket again, since the issue was fixed in this changeset: [52665].
The fix is available in WP 5.9.1 release candidate (test here: https://make.wordpress.org/core/2022/02/16/wordpress-5-9-1-rc-1/).
The final release of WP 5.9.1 is scheduled on Tuesday Feb 22, 2022.
#34
follow-up:
↓ 35
@
3 years ago
Just updated to 5.9.1 but the problem persist. Cleared cache and tried both on Firefox & Chrome to no avail.
Hello @linux4me2,
Welcome back to WordPress Core's Trac! Thank you for opening this ticket and for providing clear steps to reproduce!
This issue was first reported in the support forum https://wordpress.org/support/topic/reorder-gallery-images-in-5-9-rc3. I can confirm that drop-and-drag within the modal screen is not working in 5.9 but does in 5.8.3.
Moving this into 5.9.1 for future investigation.