Opened 18 months ago
Last modified 18 months ago
#19645 new defect (bug)
Image caption gets removed when editing image dimensions.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | 3.3 |
| Severity: | normal | Keywords: | dev-feedback |
| Cc: | kpayne@… |
Description
When editing an image placed into a post in a certain way, the caption of the image is removed.
Steps to reproduce:
- Edit a post that contains an included image.
- Click the edit options icon when selecting the image.
- Go to the advanced image settings(make sure the image does have a caption).
- Empty the width field.
- Press the submit button.
-> The caption of the image is set empty.
Remarks,
In my case only leaving the width input field blank caused this issue.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
This is intentional, but I don't understand why. Perhaps another dev can shed some light on this.
editimage.dev.js line 366
if ( f.img_cap.value != '' && f.width.value != '' ) { do_caption = 1; img_class = img_class.replace( /align[^ "']+\s?/gi, '' ); }