Opened 5 years ago
Closed 2 years ago
#50705 closed defect (bug) (worksforme)
Uncaught TypeError: attrs.ids.split is not a function at media-editor.js:385
Reported by: | dxwnh157 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.4.2 |
Component: | Media | Keywords: | |
Focuses: | ui, javascript | Cc: |
Description
This error causes the following bug.
https://wordpress.org/support/topic/edit-button-gallery-not-working/
"attrs.ids" must be array type, but in some cases it is number type.
https://github.com/WordPress/WordPress/blob/5.4.2/wp-includes/js/media-editor.js#L386
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thank you for this report @dxwnh157 ! This seems to have been fixed with some changes to how the data is handled. Single image galleries seem to be allowing the edit now.
I am going to close this but if it is still happening for you on WordPress 6.2 RC 1 please let us know!