[wp-trac] [WordPress Trac] #15841: Press This: Added images when using Press This are sourced and linked incorrectly

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 16 04:24:21 UTC 2010


#15841: Press This: Added images when using Press This are sourced and linked
incorrectly
--------------------------+-----------------------------
 Reporter:  markel        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Press This    |    Version:  3.1
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 Tested and verified in r16936.

 Pulling an image from a source used when invoking Press This should return
 the image path itself in the post content and the image should be linked
 to its associated attachment page, but instead is sourcing the attachment
 page and is linking to the original article, like the following example.

 The source document in this code snippet below is
 http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-
 behavior

 {{{
 <div class="entry-content">
     <p>&nbsp;</p>
     <p style="text-align: center;"><a
 href="http://gameinternals.com/post/2072558330/understanding-pac-man-
 ghost-behavior"><img src='http://26mag.com/?attachment_id=3754' alt=''
 /></a></p>
     <p><a href="http://gameinternals.com/post/2072558330/understanding-
 pac-man-ghost-behavior">GameInternals &#8211; Understanding Pac-Man Ghost
 Behavior</a>.</p>
 </div>
 }}}

 To reproduce:

  1. Open an article on another site.
  2. Invoke your Press This bookmarklet.
  3. Add an image from the source article by using the media tools in the
 Press This window.
  4. Draft the post.
  5. Preview the post and check source. The image will appear as a 404
 (since the attachment page doesn't return an image file).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15841>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list