[wp-trac] [WordPress Trac] #39768: Incorrect image returned with attachment_url_to_postid()

WordPress Trac noreply at wordpress.org
Thu Feb 2 20:24:41 UTC 2017


#39768: Incorrect image returned with attachment_url_to_postid()
--------------------------+------------------------------
 Reporter:  ben.greeley   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tristangemus):

 Right but if you use Wordpress to insert the image, it should be
 referencing the image as Unknown-1.jpg. The only way I see this being an
 issue is if the image is manually being typed into the editor/codebase. In
 that case, you will get the incorrect image, but Wordpress is selecting
 the proper one based on intended logic.

 If you are able to take a quick screen recording and upload it to Youtube,
 that would be helpful so we can see if this is a bug or not.

 Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39768#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list