Make WordPress Core

Opened 6 years ago

Closed 4 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:
Priority: normal Milestone:
Component: Media Version: 5.4.2
Severity: normal Keywords:
Cc: Focuses: ui, javascript

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)

スクリーンショット 2020-07-21 3.31.05.png​ (329.0 KB ) - added by dxwnh157 6 years ago.

Download all attachments as: .zip

Change History (3)

This ticket was mentioned in ​Slack in #core-media by antpb. ​View the logs.


4 years ago

#2 @antpb
4 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed

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!

Note: See TracTickets for help on using tickets.