#19498 closed defect (bug) (fixed)

Press this add image from URL bugs

Reported by: greuben Owned by: nacin
Priority: normal Milestone: 3.3.2
Component: Press This Version: 3.3
Severity: major Keywords: has-patch
Cc:

Description

Two bugs

  1. Add image from url form works only once. Click "Add From URL", insert an image and try it again, the form is not displayed.
  1. Click "Add From URL" then click cancel, then form is appended to the body and is visible.

Attachments (3)

pressthis.diff (776 bytes) - added by greuben 18 months ago.
19498.diff (921 bytes) - added by greuben 18 months ago.
19498-2.patch (1.2 KB) - added by azaozz 18 months ago.

Download all attachments as: .zip

Change History (13)

  • Milestone changed from Awaiting Review to 3.3

It's an regression.

Patch does display the form, but it's still prefilled.

  • Priority changed from normal to highest omg bbq
  • Severity changed from major to critical

comment:3 follow-up: ↓ 5   azaozz18 months ago

19498-2.patch reverts back to cloning #photo-add-url-div.

  • Milestone changed from 3.3 to 3.3.1
  • Priority changed from highest omg bbq to normal
  • Severity changed from critical to major

comment:5 in reply to: ↑ 3   nacin17 months ago

Replying to azaozz:

19498-2.patch reverts back to cloning #photo-add-url-div.

Anyone know the history as to why/where this changed away from this?

As far as I remember there was a bug related to duplicate HTML IDs in Press This. When cloning a DOM node or sub-branch, all cloned nodes end up duplicating the IDs from the originals. Easiest solutions to that are either not to use HTML IDs in the sub-branch or to move it instead of cloning (however neither would be a straight replacement in this case).

Tracked this down to [19424/trunk/wp-admin/press-this.php]. Thanks for the explanation.

In [19664]:

Revert a piece of [19424], go back to cloning a div for adding images in Press This. props azaozz, see #19498 for trunk.

  • Milestone changed from 3.3.1 to 3.3.2
  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [20542]:

Revert a piece of [19424], go back to cloning a div for adding images in Press This. props azaozz, fixes #19498 for 3.3.

Note: See TracTickets for help on using tickets.